38,937 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-3
votes
0
answers
31
views
Eclipse e4 RCP apps no longer start with JavaFX > 21.0.1 on macOS 26.2 [closed]
I'm new here and I'm facing an issue while trying to run an Eclipse e4 RCP app (Eclipse platform 2024-12) built on top of JavaFX 21.0.9 (on macOS 26.x / Apple M1 cpu).
As soon as I downgrade to JavaFX ...
-3
votes
0
answers
53
views
FXML Application Load Recompiled Class On Runtime [closed]
I'm trying to develop application with approach not to recompile whole project when I make some little change to user interface. I already managed to load changes made to graphics with fxml loader, ...
5
votes
1
answer
132
views
Aligning custom ButtonTypes
How do I make sure my custom Alert button is placed alongsode the cancel button? As of now, the cancel button is shoved to the right, while my custom button is put in a weird place that is neither ...
-1
votes
1
answer
117
views
Selecting ComboBox item in TestFX test
How do you select a ComboBox item, presumably using FxRobot?
I want to select the item "like a real user" (not programmatically) without getting coupled to the items' string representation (...
3
votes
1
answer
127
views
ColtrolsFx's auto completion not showing up
I am trying to bind auto completions on a text field with the library controlsfx. The problem is that somehow on the packaged version of the app it doesn't show up, while in the gradle-run or tar/zip (...
0
votes
1
answer
180
views
Nested JavaFX Services [closed]
How do I nest Services / Tasks in JavaFX — or achieve the same effect by other means?
I created a simplistic form for "saving" DB connection settings. Here's what it should be.
It has two ...
2
votes
0
answers
169
views
javafx.controls module can't be found but it exists in the right location
I'm using JDK 25, Apache Netbeans and Windows 11. My JavaFX SDK folder is in C:\ and I verified that it is indeed in the lib folder, but the compiler still says it can't find it. I'm pretty sure I ...
Best practices
1
vote
7
replies
115
views
Disable Button as click is still processed
Suppose a click on a JavaFX button is processed for some period of time (e.g. it performs some IO). How do you block interaction with that button while a click is still being processed? Say, it is ...
0
votes
1
answer
145
views
Launching a jar by directly loading jar bytes in memory from a graal native image and launching the application no disk writes
I'm building an application launcher using GraalVM native image. The launcher downloads an encrypted JAR, decrypts it in memory, and needs to launch it without ever touching the disk. Security ...
2
votes
1
answer
109
views
Using FitWidth and FitHeight results in a snapshot with a smaller rendered image than expected
Intro
The following code implements a draw-by-brush on an image using a canvas. The Idea is to stack a Canvas object over an ImageView, draw on it, and finally render the StackPane (image + canvas) ...
0
votes
0
answers
82
views
How to check the online/offline status of a POS Printer in Java?
I am developing a Java application that prints receipts to a DGT POS Printer Speed Line 300-UL. The printer is connected via Ethernet (network), not USB.
I want to implement a feature where the ...
6
votes
0
answers
134
views
Can JavaFX WebView show webp images?
I use JavaFX 26-ea+6 on Ubuntu 20.04 and it seems that WebView can't show webp images. This is my code:
public class TestFx extends Application {
@Override
public void start(Stage ...
1
vote
0
answers
85
views
How to add 64-bit OS check for Java 17 JavaFX app when packaging with launch4j-maven-plugin?
I'm working on a JavaFX application that requires Java 17+, which only supports 64-bit operating systems. I'm using the launch4j-maven-plugin to create an EXE file, and I need to ensure that when ...
0
votes
1
answer
81
views
Problems getting JavaFX running on VS Code
I have never used JavaFX before and I am trying to get it running in VS Code using the basic Maven project build tools and it creates the project just fine. I then go in and update all the version in ...
7
votes
2
answers
218
views
Should a permutation in an ObservableList generate added and removed changes in JavaFX?
I thought that during a permutation in an ObservableList, added and removed changes should not be generated. However, calling FXCollections.reverse() showed that this is not the case. This is my code:
...