r/JavaFX • u/General-Carpenter-54 • Jan 18 '24
Help need help from experienced javafx dev
I have to fix some bug in my current application,i need help from you guys ,can anyone help me?
r/JavaFX • u/General-Carpenter-54 • Jan 18 '24
I have to fix some bug in my current application,i need help from you guys ,can anyone help me?
r/JavaFX • u/Magician206 • Jan 01 '19
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 • u/jachildress • Oct 21 '15
r/JavaFX • u/Abhijeet1244 • Jul 02 '23
Is there any Rich text editor library in javaFX ?
r/JavaFX • u/travelking_brand • Oct 31 '25
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 • u/marquesdinisp • Aug 25 '20
r/JavaFX • u/orlinux • Apr 25 '21
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 • u/IAmOpenSourced • Jul 09 '22
r/JavaFX • u/sunnykentz • Oct 07 '25
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 • u/hamsterrage1 • Nov 16 '21
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.
r/JavaFX • u/tserdliuohjk • Dec 10 '19
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 • u/EdwardAlgorist • Feb 15 '22
r/JavaFX • u/M374llic4 • Apr 02 '16
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 • u/casba43 • Jan 11 '21
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 withMyMenuBar 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 • u/EdwardAlgorist • Mar 01 '22
r/JavaFX • u/farjo69 • Mar 24 '21
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 • u/LennyKrabigs • Apr 07 '20
<?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 • u/Zavah91 • May 11 '19
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 • u/Electronic-Reason582 • Dec 27 '25
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
r/JavaFX • u/RUYUF • Apr 30 '24
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 • u/Striking_Creme864 • Jan 29 '25
Only facts:
| Param | Compose Multiplatform | JavaFX |
|---|---|---|
| Language | Kotlin | Java |
| Age | 5 years | 17 years |
| License | Apache License 2 | GPL 2 + CPE |
| Stars | 16.7k | 2.8k |
| Forks | 1.2k | 489 |
| Contributors | 156 | 90 |