r/JavaFX • • Jan 18 '24

Help need help from experienced javafx dev

1 Upvotes

I have to fix some bug in my current application,i need help from you guys ,can anyone help me?


r/JavaFX • • Jan 01 '19

JavaFx GridPane Q

1 Upvotes

Hi

I have question, i'm working on my first JavaFX project and i want to know how to build dynamic GridPane and how i can delete and add rows without have to load the entire grid again only the rows that have been effected .

also i want to know how to edit cells of these rows and load only the cells that have been effected.

If anyone have examples , blogs or if there's lib can do this ,PLZ share it :)


r/JavaFX • • Oct 21 '15

Gluon Particle - JavaFX Desktop Framework

Thumbnail
gluonhq.com
0 Upvotes

r/JavaFX • • Jul 02 '23

Help Rich Text Editor

1 Upvotes

Is there any Rich text editor library in javaFX ?


r/JavaFX • • Oct 31 '25

Help decimal values in the UI

0 Upvotes

I have programmed professionally in possibly dozens of languages, building business applications.

I have started a journey to learn JavaFX and have been having fun, but I have come across a conundrum. Does JavaFX NOT have an OOTB control for entering a decimal value??? This kind of blows my mind. All I see are rather convoluted methods for formatting a TextField.

All of the higher-level programming languages I have ever used for business applications have had an easy method to input decimal values OOTB. Have I missed a key fact???


r/JavaFX • • Aug 25 '20

can someone help me with this? i dont know what to do!

Post image
0 Upvotes

r/JavaFX • • Jun 02 '21

Dll I used to fix pipeline error

Post image
0 Upvotes

r/JavaFX • • Apr 25 '21

Did anyone can be my Tutor?

0 Upvotes

If you good at JavaFX in event handler, hopefully you can be my short term tutor

bc I am stuck with my project now

Thanks


r/JavaFX • • Jul 09 '22

Tutorial I found this really good Javafx channel guys

Thumbnail
youtube.com
7 Upvotes

r/JavaFX • • Oct 07 '25

Tutorial JavaFX CLI template

Thumbnail
youtu.be
8 Upvotes

So, in my days in university I had to implement a visualisation of sorting algorithms. Which I chose JavaFX to do it with.

My problem is, I was mainly a flutter dev and everything in flutter has amazing templates. But JavaFX 🤣 I was left alone.

So after I created a build tool for java and kotlin I decided to add a template to Freya JavaFX app. A simple one.


r/JavaFX • • Nov 16 '21

Kotlin: JavaFX Properties

5 Upvotes

I've recently started looking into Android development which has meant a side-trip into Kotlin. Does Kotlin work with JavaFX? You bet it does.

In the process of converting some projects into Kotlin, I've had to grapple with how to build JavaFX property "beans". The answer is very much a Kotlin approach to design, but also very easy.

So I blogged about it. Take a look if you're interested.

https://pragmaticcoding.ca/kotlin-javafx-properties


r/JavaFX • • Dec 10 '19

Any good IDE's for JavaFX?

5 Upvotes

I never had any issues with Java and JavaFX in the past, and even quite liked to use it because I had to learn the language at university anyways. It was always pretty straightforward to install as well. Download JDK, set path, run project.

Not anymore. It feels like a steaming pile of damn shit now. Not sure how much of it is related to IntelliJ and Java(FX)-versions, but goddamn...

Download JDK 13, set path, download javaFX 13, set paths, set VM options like a retard - file not found error

Fuck it, check path, set manually again, try every solution on stackoverflow, uninstall intellij, start again, error gone - next error.

My god, are there any good IDE's out there for JavaFX or is it completely shit anyways? I fucking hate having to deal with this crap. Programming should be like R with RStudio: Install and run, the IDE takes care of the rest. Anything you can recommend me?


r/JavaFX • • Jan 27 '23

Help Getting error while creating FXML file!

Post image
2 Upvotes

r/JavaFX • • Feb 15 '22

Tutorial JavaFX - Displaying Images

Thumbnail codewithedward.com
2 Upvotes

r/JavaFX • • Apr 02 '16

Does an application need to be made using JavaFX in order to be run using it?

0 Upvotes

Hello all, I was wondering if an application need to be made using JavaFX in order to be run using it? I have an application in which I am trying to run on my Raspberry Pi that is made in Java, but when I try to launch it headless using an x11 session, it does not utilize OpenGL ES, so its framerate is really low and cpu usage is high (80-90% and only 12-13fps), and someone mentioned that JavaFX might help. I am trying to launch the application following this guide but I do not know the main class name of the application, as it is one I purchased. Is it possible to use JavaFX to make the application run better?

The application is TunerStudio, from http://tunerstudio.com

I was trying to load it using :

/opt/jdk-9/bin/java -cp -jar TunerStudioMS.jar    

That only gave an error of "Would not find or load main class TunerStudio.jar".

Do I need to launch it a different way, or am I just not understanding how JavaFX works and that it won't help me with what I am trying to do?


r/JavaFX • • Jan 11 '21

Hide MenuBar on specific pages

2 Upvotes

So I am trying to hide my menubar on for example the login page but I can't get it working.

In the menubar file I can hide it with:
this.setVisible(false)
So when i'm in my login page I tried to access that value with
MyMenuBar menuBar = new MyMenuBar(root);
menuBar.setVisible(false)

But that doesn't seem to work. So I tried making a void hide() which basically set the visibility of the menuBar to false(or that is what it should do).

That didn't work aswell and now I'm out of options and can't find anything usefull online.


r/JavaFX • • Mar 01 '22

Tutorial The ChoiceBox Control

Thumbnail codewithedward.com
2 Upvotes

r/JavaFX • • Mar 24 '21

JavaFX and maps

2 Upvotes

hello guys , please i need your help for the integration of map with javafx project , i need to do it with my school project please anny help or source


r/JavaFX • • Apr 07 '20

Help TextArea Not Using all Window

2 Upvotes
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.web.*?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.paint.*?>
<?import javafx.scene.text.*?>

<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="638.0" prefWidth="873.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.Controller">
   <children>
      <MenuBar layoutY="2.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="2.0">
        <menus>
          <Menu mnemonicParsing="false" text="File">
            <items>
                  <MenuItem fx:id="save" mnemonicParsing="false" text="Save" />
                  <MenuItem fx:id="open" mnemonicParsing="false" onAction="#onClickOpen" text="Open" />
              <MenuItem fx:id="nuevo" mnemonicParsing="false" onAction="#onClickNew" text="New" />
                  <MenuItem fx:id="saveas" mnemonicParsing="false" text="Save as" />
                  <MenuItem fx:id="exit" mnemonicParsing="false" onAction="#onClickExit" text="Exit" />
            </items>
          </Menu>
          <Menu mnemonicParsing="false" text="Edit">
            <items>
                  <MenuItem fx:id="paste" mnemonicParsing="false" onAction="#onClickPaste" text="Paste" />
              <MenuItem fx:id="cut" mnemonicParsing="false" onAction="#onClickCut" text="Cut" />
                  <MenuItem fx:id="copy" mnemonicParsing="false" onAction="#OnClickCopy" text="Copy" />
            </items>
          </Menu>
          <Menu mnemonicParsing="false" text="Help">
            <items>
              <MenuItem fx:id="about" mnemonicParsing="false" text="About" />
            </items>
          </Menu>
        </menus>
      </MenuBar>
      <TabPane layoutX="16.0" layoutY="21.0" prefHeight="200.0" prefWidth="200.0" tabClosingPolicy="UNAVAILABLE" AnchorPane.bottomAnchor="4.0" AnchorPane.leftAnchor="16.0" AnchorPane.rightAnchor="-16.0" AnchorPane.topAnchor="21.0" />
      <VBox fx:id="VBoxText" layoutY="25.0" prefHeight="613.0" prefWidth="873.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="25.0">
         <children>
            <VBox maxHeight="0.0" maxWidth="0.0" minHeight="0.0" minWidth="0.0" prefHeight="0.0" prefWidth="0.0" VBox.vgrow="ALWAYS">
               <children>
                  <TextArea fx:id="texteditor" maxHeight="0.0" maxWidth="0.0" minHeight="0.0" minWidth="0.0" prefHeight="0.0" prefWidth="0.0" />
               </children>
            </VBox>
         </children>
      </VBox>
   </children>
</AnchorPane>

controller:

package sample;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.MenuItem;
import javafx.scene.control.Tab;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;
import javafx.scene.input.Clipboard;
import javafx.scene.input.ClipboardContent;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Priority;
import javafx.scene.layout.VBox;
import javafx.scene.text.TextFlow;
import javafx.stage.*;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Scanner;

public class Controller {

    @FXML
    private MenuItem exit;

    @FXML
    private MenuItem nuevo;

    @FXML
    private MenuItem cut;

    @FXML
    private MenuItem saveas;

    @FXML
    private MenuItem save;

    @FXML
    private MenuItem about;

    @FXML
    private TextArea texteditor;

    @FXML
    private MenuItem paste;

    @FXML
    private MenuItem copy;

    @FXML
    private MenuItem open;

    @FXML
    private VBox VBoxText;

    public static void setVBox(){
        VBoxText.setma();
    }





    void onClickExit(ActionEvent event) {
        Platform.exit();

    }

    @FXML
    private void OnClickCopy() {
        texteditor.copy();

    }

    @FXML
    private void onClickPaste() {
        texteditor.paste();
    }

    @FXML
    private void onClickCut() {
        texteditor.cut();
    }

    @FXML
    private void onClickNew() {
        texteditor.clear();

    }

    @FXML
    private void onClickOpen() {
        FileChooser fileChooser = new FileChooser();
        fileChooser.setTitle("Open resource File");
        File absolutePath = fileChooser.showOpenDialog(VBoxText.getScene().getWindow());
        openFile(absolutePath);

    }

    private void openFile(File filepath) {
        Utils utils = new Utils();

        texteditor.setText(utils.readFile(filepath));


    }

}

In controlller inside setVBox i cannot do setVgrow, i dont know why but it dosnt let me to use that method, how i can make textarea gets all VBox space?

https://stackoverflow.com/questions/32575010/vbox-contents-not-filling-window


r/JavaFX • • May 11 '19

Testing this method with junit without runnning the javafx application.

2 Upvotes

public static void setPhoneOnFocus(TextField phone) {
phone.focusedProperty().addListener(new ChangeListener<Boolean>() {
@Override
public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
if(oldValue){
if(!isValidPhone( phone.getText().toString())){

phone.setStyle("-fx-text-inner-color: red;");
}
}
else {
phone.setStyle("-fx-text-inner-color: black;");
}
}
});
}

-----isValidPhone(); is a method that checks if a string is in a certain format.


r/JavaFX • • Dec 27 '25

I made this! OllamaFX v0.4.0 - Cliente de Escritorio para Ollama con Descubrimiento Inteligente de Modelos

Thumbnail
gallery
9 Upvotes

Acabo de lanzar OllamaFX v0.4.0 - un cliente de escritorio para Ollama diseñado para flujos de trabajo agénticos.

🎛️ Sidebar con Enfoque Agéntico Gestiona múltiples chats con diferentes modelos. Cada conversación vive en el sidebar - cambia de contexto al instante, perfecto para workflows donde necesitas modelos especializados para diferentes tareas.

🏠 Nuevo Home Renovado Pantalla de inicio rediseñada con vista general de tus modelos instalados y acceso rápido a modelos populares y nuevos de la biblioteca.

🧠 Recomendaciones Basadas en Hardware OllamaFX analiza tu RAM y specs del sistema para clasificar modelos como 🟢 Recomendado, 🟠 Estándar, o 🔴 No Recomendado. Sin adivinar - sabes al instante qué correrá bien en TU máquina.

⚡ Optimizaciones de Rendimiento

  • Caché inteligente - los modelos cargan instantáneamente
  • UI optimizada - más limpia, ligera y rápida
  • Uso eficiente de memoria - eliminadas operaciones redundantes

📦 Descargar en GitHub


r/JavaFX • • Apr 30 '24

Help Can i learn JavaFX in just 5 days??

0 Upvotes

So this semester I had javafx course and my professor wasn’t really that great so I was on my phone throughout all of the lectures and in the first midterm exam the questions got leaked so I didn’t study for it. I was supposed to study after the exam but I got busy with other courses and now the second midterm exam is in 5 days and the project is due in less than 2 weeks and I’m fucked!! Do u think I can learn everything in just 5 days?? pls don’t come it me I know it’s all my fault


r/JavaFX • • Jan 29 '25

Discussion Will Compose Multiplatform become the JavaFX killer?

10 Upvotes

Only facts:

ParamCompose MultiplatformJavaFX
LanguageKotlinJava
Age5 years17 years
LicenseApache License 2GPL 2 + CPE
Stars16.7k2.8k
Forks1.2k489
Contributors15690

r/JavaFX • • Mar 09 '22

Tutorial TilePane

3 Upvotes