Questions tagged [javafx]
The JavaFX platform enables developers to create and deploy Graphical User Interface (GUI) applications that behave consistently across multiple platforms. JavaFX 1.3 and older, were scripting languages, whereas JavaFX 2.x+/8.x enables users to use Java. FXML enables JavaFX to follow an MVC architecture.
javafx
38,724
questions
0
votes
0
answers
26
views
How can I enhance the development of JAVAFX applications using MVC? [closed]
I have been working with JAVA and JAVAFX for some time now. I have come to discern certain limitations in utilizing FXML when tasked with creating dynamic and complex applications.
My personal ...
-1
votes
0
answers
53
views
Doesn't respond to setOnDrag Javafx events
I have a Pane into which I want to move files, but for some reason it doesn’t trigger on these events, I’m already confused, the pane processes all events except setOnDragOver, setOnDragEntered, ...
0
votes
0
answers
28
views
How is the 3D Perspective Camera transformation implemented in JavaFX?
I'm looking for a way to map a point in 3D eye space to its equivalent window coordinates, but I can't seem to find any information about how JavaFX does it.
-1
votes
0
answers
15
views
Error when loading new fxml page with a service initialized [duplicate]
I am learning the javafx and springboot integration and created a small program. Essentially a user can see a person's details, click an add new button, a new fxml page loads and a user can add in a ...
-1
votes
0
answers
22
views
FXGL. package with shapes is not visible
While i'm trying to use class from com.almasb.fxgl.physics.box2d.collision.shapes package like this:
physicsComponent.setFixtureDef(new FixtureDef().shape(new CircleShape((float) hitBoxRadius))); with ...
0
votes
0
answers
51
views
Adding module-info.java to a Kotlin project causes build error
I was trying to make a JavaFX project with Kotlin, Gradle on IntelliJ IDEA.
Using Java 17.
At first, I didn't used module-info.java, and it worked well, but it warned me
"WARNING: Unsupported ...
0
votes
0
answers
36
views
Trying to install JavaFX in VS Code
This is the error I get when I try to create JavaFX project. First I was facing problem with JAVA_HOME (which I fixed). Now this:
Executing task: ""c:\Users\User-name\.vscode\extensions\...
0
votes
0
answers
26
views
how to scroll to the bottom in richtextfx TextArea
I'm trying to create a text area that whenever a text is added, it will scroll to the bottom. With the help of ChatGPT and all the documentation I could find, I ended up with this, but it doesn't work....
3
votes
1
answer
44
views
The :focused pseudo-class does not work (CSS/JavaFX)
I'm making an application in JavaFX and using MFXTextField, which is part of the MaterialFX library. The task is to make the floating-text change color when the field is activated. I tried using the ...
0
votes
1
answer
39
views
JavaFx WebView element selection. (JavaScript)
I have a WebView element, which render a html code. I want to create getSelectedIndices and setSelectedIndices method. Getter works, Setter throws IndexSizeException.
How can I set the selection area ...
1
vote
0
answers
43
views
JavaFX minimizable dialog across operating systems
I want a non-modal Dialog that can be minimized (the OS shows a minimize button at the top of the window) on every OS. The only way I've found to do this on windows is for the dialog not to have an ...
-2
votes
0
answers
30
views
Why can't I create Image objects using JavaFX on IntelliJ when the image files are in a folder [duplicate]
Project Structure
Right now, I think IntelliJ considers the images folder a package once it's inside src and a directory once its outside src. When I try to give the path to the images folder to ...
-7
votes
0
answers
42
views
Swing embedded java FX application throws java.lang.IndexOutOfBoundsException: Index -1? [closed]
It throws java.lang.IndexOutOfBoundsException: Index -1 from FX side of the swing embedded FX application. This not show any stack to our application root. This is a sporadic issue comes from customer ...
0
votes
0
answers
31
views
Why javafx vbox doesn't fit to its content [closed]
I have a complex HMI which implies multiple vbox intricated in my code.
Some are defined in xml, some are in fx:include, some are directly created dynamically in the java code.
The thing is : I add ...
0
votes
1
answer
60
views
Transforming java slider switch code to Scene Builder control
Hey all I am trying to figure out how to transform my JavaFX slider switch to a Scene Builder 2.0 control so that I can use it within scene Builder.
I currently have been watching these 2 YouTube ...