38,947 questions
1
vote
0
answers
10
views
How to Add 64-bit OS Check for JDK 17 JavaFX App When Packaging with launch4j-maven-plugin?
How to Add 64-bit OS Check for JDK 17 JavaFX App When Packaging with launch4j-maven-plugin?
I'm working on a JavaFX application that requires JDK 17+, which only supports 64-bit operating systems. I'm ...
-3
votes
0
answers
69
views
How do I turn my JavaFX application into an executable for Windows? [closed]
My application I want to turn into an executable file. The project is a JavaFX application built with Maven. I've embedded an SQLite database in IntelliJ IDEA.
Main class, the entry to the application:...
0
votes
1
answer
73
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
194
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:
...
0
votes
1
answer
70
views
Gluon plugin IntelliJ 2025.1+ dependency on com.intellij.javafx
With this announcement: https://platform.jetbrains.com/t/javafx-runtime-for-plugins-is-deprecated-in-2025-1/944
It is obvious why this is not working. However, I have not been able to find a ...
4
votes
0
answers
80
views
Calling SearchableComboBox.getItems().remove() from the OnAction Event results in an IndexOutOfBoundsException
I am trying to create a JavaFX project featuring multiple instances of the SearchableComboBox control from the ControlsFX library, each having the same list of options. When an option is selected in a ...
-1
votes
0
answers
107
views
Need help compiling a JavaFx project [duplicate]
Created a JavaFX app using Java 21 and copied this tutorial to build my project
https://www.youtube.com/watch?v=udigo_qSp_k
I then created my project, and everything ran fine in an IDE. When trying to ...
3
votes
1
answer
115
views
Trying to make a TTRPG dice roller, program shows no content despite there are no errors
I'm trying to make a TTRPG dice roller with Java within a Java FX app. So far, this is what I have: the program skips the try block and shows nothing in the screen, the console shows no errors. Can ...
5
votes
1
answer
97
views
TableView doesn't stretch in VBox in JavaFX
I have two TableView in a VBox. I need the first one to grow and take all available space, while the second one should not expand. This is my current code:
public class TestFx extends Application {
...
5
votes
1
answer
152
views
Integrating a Jakarta Persistence implementation with modular JavaFX/Maven/JLink app
Quick background information for context: I'm writing a relatively small tool for a small gaming community to download and manage user generated content. It's a modular Java 24 + JavaFX Project done ...
1
vote
0
answers
76
views
JavaFX + Spring: Encountering org.springframework.beans.factory.NoSuchBeanDefinitionException when trying to run SQL query [duplicate]
I am trying to develop a desktop application using JavaFX and Spring Framework in Intellij. I have model class, repository class, controller class, and a view class. But when I try to run the program, ...
-1
votes
0
answers
139
views
Java Multithread EventHandling
I'm trying to write an audio player in Java/JavaFX and want to make a playlist play songs automatically. I have a button that triggers a new thread, and everything works fine so far.. but when the ...
1
vote
1
answer
50
views
scenicview tries to connect to unreachable IP, is it configurable?
I want to use scenicview to inspect a JavaFX Application, my PC don't have direct access to internet and I can see it tries to connect to 10.2.175.91:
java.rmi.ConnectIOException: Exception creating ...
0
votes
0
answers
93
views
FXGL getAssetLoader().loadFont() fails to load TTF font from /assets/ui/fonts/ directory
I'm trying to load a custom TTF font in an FXGL 21.1 game application, but getAssetLoader().loadFont() consistently fails to find the font file, even though it exists in the correct directory ...
2
votes
1
answer
131
views
Changing Mouse Cursor on a Mouse Scroll Event
I found this example on a website, but neither event is triggered, even though the code appears to be correct.
import javafx.application.Application;
import javafx.scene.Cursor;
import javafx.scene....
1
vote
1
answer
122
views
How do I convert a JavaFX application into an executable .jar file with all dependencies included?
I’ve built a modular JavaFX application using JDK 21 and JavaFX SDK 21.0.1. The project runs perfectly inside my IDE (IntelliJ IDEA), but when I try to export it as a .jar file and run it outside the ...
-1
votes
0
answers
41
views
How binding the slider value property to a scale property makes the pivot calculation go wrong in a zoom and pan application [duplicate]
Introdution
In a previous post, I asked about why the zoom-by-slider doesn't work as expected when I bind the slider bidirectionally to the scale, to ensure that the slider updates during wheel ...
0
votes
1
answer
61
views
JavaFX FullScreen Dialogs on MacOS
When my app (using OpenJFX 25 and Java 25) is in fullscreen mode on Mac, JavaFX dialogs are also fullscreen. Is there any way to work around this?
5
votes
2
answers
258
views
Zoom-by-slider goes awry when binding the slider to the scale property
Intro
The following code demonstrates the Zoom and Drag functionalities of an ImageView in a viewport. Zoom can be adjusted either by scrolling the mouse wheel or through a Slider. Meanwhile, dragging ...
1
vote
1
answer
101
views
Unit testing with TestFX (and Mockito)
It is my understanding that you have to @ExtendWith(MockitoExtension.class) to run a test class with Mockito runner. And to use TestFX to test a JavaFX application you would need to @ExtendWith(...
1
vote
1
answer
112
views
Some issues with ImageView display
When I call ImageView::setImage, will the image be immediately refreshed to the interface? If I use ImageView as a video player and the video frame rate is very high, and each new frame is set using ...
-1
votes
3
answers
193
views
Updating ComboBox item rendering
Suppose I have a JavaFX ComboBox that stores custom objects. Objects are rendered in a way that involves their property X.
I now mutate property X for the selected object. How do I make the combo ...
0
votes
1
answer
122
views
Source files for Liberica's JavaFX
I want to see JavaFX types' javadocs in IntelliJ IDEA.
To do that, I need to download the sources and specify the zip in the sourcepath (Project Structure - SDKs - Sourcepath). I did it.
However, once ...
5
votes
1
answer
191
views
Change the preview icons of the dragged files when the source is the OS file system or another application
Intro
When dragging item(s) from another application into the DnD Node in JavaFX The operating system or the source application handles the visual display of the dragged item(s) since it is the source ...
2
votes
1
answer
82
views
How do I get the pixels in an Image object that contribute to the pixel in the ImageView object at a particular location in the imageview object
Please how do I get the pixels in the Image object that contribute to the pixel in the ImageView object at a particular location in the ImageView object. Smooth is true and preserveRatio is false.
I ...
4
votes
1
answer
184
views
Instant animation with KeyValue when using the overlay parent height as the target value
I previously posted a question about why the overlay animation in the StackPane container occurs instantly when using KeyFrame.
@Slaw pointed out the root of the issue in a comment:
You're using on-...
1
vote
0
answers
96
views
How to make an overlay animation in a StackPane with JavaFX
I have three StackPane elements, each containing its corresponding ImageView for an Icon and an overlay VBox. The intended animation is to make the overlay appear from the top to the bottom of the ...
4
votes
1
answer
242
views
Fatal error and unusual result when converting OpenCV Mat into a JavaFX image
This is a follow-up question to two previous posts on the most efficient way to convert an OpenCV Mat object into a JavaFX Image (post 1, post 2).
@James_D, @Slaw, pointed to two possible approaches, ...
0
votes
0
answers
57
views
How to fix an error: Could not get unknown property 'desktopCompile' in jfxmobile?
I want to create a JavaFX program for Android and IOS. I downloaded and installed JFXMobile into IntelliJ IDEA. For setting up, I used information from here. When I tried to build my program, I got an ...
0
votes
1
answer
196
views
Converting an OpenCV mat to a JavaFX image not working when using ByteBuffer and PixelFormat [closed]
I have posted a question on which of two approaches is more efficient for converting an OpenCV mat object to a JavaFXML Image so it can be displayed later in the application.
Most of the comments ...
0
votes
1
answer
99
views
Platform.exit() in Dialogue is not exiting JavaFX
Why doesn't the following JavaFX App shutdown immediately when the Cancel button in a Dialogue is pressed?
I expect the Platform.exit() to stop the App.
Here's my example code (run using Zulu JavaFX ...
5
votes
1
answer
139
views
Is possible write multiple nodes in new @media query in CSS in JavaFX 25?
In https://bugs.openjdk.org/browse/JDK-8345348 in Description is this CSS snippet:
.button {
-fx-background-color: lightgray;
}
@media (prefers-color-scheme: dark) {
.button {
-fx-...
1
vote
1
answer
148
views
Are Preview Features in JavaFX 25 API really deprecated?
On JavaFX 25 API Doc page is for example class javafx.scene.layout.HeaderBar marked as Deprecated. Is really true? Or is it bug or I don't understand it well.
See screenshot above, where the problem ...
0
votes
0
answers
51
views
Gluon native app on Android 9 crashes with java.lang.UnsatisfiedLinkError: com.sun.javafx.font.FontConfigManager.getFontConfig
I have Compiled and Package a native apk for android using gluonfx using the following build.gradle config:
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.1.0'
id 'com....
2
votes
2
answers
79
views
JavaFX combobox top cell style?
I want to set the topmost cell and the bottommost cell in the list-view of a combo-box to have rounded corners (without setting rounded corners for the other cells). What should I do?
thank you for ...
0
votes
0
answers
81
views
SplitPane ignores divider positions when adding a new item with ResizableWithParent = false
I have a SplitPane where I want only one item to be ResizableWithParent = true, while all other items should not be resizable with the parent.
The problem is that when I add a new item and then set ...
4
votes
0
answers
73
views
Where should the tabs of a vertical TabPane scroll when the mouse wheel is used?
This is my test code:
public class TestFx extends Application {
@Override
public void start(Stage primaryStage) {
var tabPane = new TabPane();
tabPane.setSide(Side.RIGHT);
...
1
vote
0
answers
139
views
Java 23 and JavaFX: Problems in creating an executable app
I'm developing an app using JavaFX, but I've encountered a problem creating a build and converting it into an executable app. Several years ago, I created a small app using this technology, and I ...
1
vote
1
answer
67
views
Embedding fxml in fxml: Access to the parent controller and switch between fxmls
I have an application, where the ParentView consists of a horizontal SplitPane with two buttons at the left side to choose a ChildView, which is embedded at the right side.
With the two ParentView ...
3
votes
1
answer
105
views
JavaFX app freezes or flickers after Intel Iris Xe driver update [closed]
I have a JavaFX desktop application that started having rendering issues after updating the Intel Iris Xe graphics driver.
On Java 11 + JavaFX (Zulu distribution):
openjdk version "11.0.25" ...
3
votes
1
answer
106
views
testfx executes start before each test in spite of @TestInstance(TestInstance.Lifecycle.PER_CLASS)
I am testing a JavaFX GUI using org.fxtest. Setting up the Application is quite time consuming so I annotated my Test-class with @TestInstance(TestInstance.Lifecycle.PER_CLASS)
Nevertheless, the start ...
3
votes
0
answers
106
views
JavaFX WebView: window.crypto.subtle is undefined
I try to display my website in a JavaFX WebView component, but the page fails to load. I get a blank page.
The site uses the JavaScript library angular-auth-oidc-client to redirect to WebSSO. After ...
2
votes
0
answers
107
views
Buttons in GridPane stacking on top of each other
I am having an issue with displaying a grid of buttons properly. I essentially need the following:
The buttons need to be in a grid like in the second picture
The buttons need to be square
The ...
0
votes
1
answer
57
views
SIGSEGV in new FxCanvas
I am trying to create a java FX based visual in an editor.
As a first step I tried to create an FXCanvas like this:
public class ModelEditorView extends EditorPart {
public static String ID = &...
2
votes
1
answer
208
views
Problems at running application with Java21, Geotools and Javafx
My target is to create an application, which uses Java 21.0.7 (OpenJDK), JavaFx 23.0.2 and GeoTools 34-SNAPSHOT to show S57 sea charts.
As a prerequirement I have downloaded javafx-sdk-23.0.2 as well ...
0
votes
0
answers
56
views
The packaging plugin for project javafx-base did not assign a file to the build artifact [duplicate]
I keep having this error: "The packaging plugin for project javafx-base did not assign a file to the build artifact." Six month ago, I didn't had it; I havn't touched this project since. Is ...
0
votes
0
answers
122
views
How to show my maps website in JavaFX application using WebView?
I need to implement a map for my road management project. Something similar to Google Maps but simpler. It is for an academic project. I don't want to use Google Maps API.
I tried using JavaFX WebView....
3
votes
1
answer
63
views
Accessing the window from a menu item in Cljfx
How can I access the main window (:stage) from a menu click event in Cljfx? I need it for two reasons: to open a file chooser, and to resize the window.
A minimal example:
(ns a
(:require [cljfx.api ...
2
votes
1
answer
144
views
IntelliJ IDEA Not Working with OpenJDK24 and JavaFX
I'm completely new to IntelliJ and JavaFX. I'm trying to get started by creating my first project. I'm running in a linux environment and downloaded openJDK24 and openJFX24.
After running IntelliJ, I ...
3
votes
1
answer
144
views
How do I disable ImageSmoothing in javaFX 3D
I'm rendering cubes in JavaFX 3D for a voxel-based game. I'm trying to texture the cubes with a diffuseMap, however due to the textures being 32x32 the image is being considerably blurred. Is there a ...