Questions tagged [fxml]
a scriptable XML-based language that provides the structure for building a JavaFX user interface separate from the application logic of your code.
fxml
3,623
questions
0
votes
0
answers
15
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 ...
0
votes
1
answer
40
views
How to request focus for a certain field?
I am developing a Login Dialog for a Smart Card Token Management with Certificate System. Below, I added example code to demonstrate the issue. If I start the application I first see a login dialog ...
0
votes
0
answers
74
views
JavaFX: setting list for comboBox does not work
I am working in a JavaFX project. There I have fxml included in other fxml files. Now I need to send data from the outer controller to the inner controller. I've tried it, but the combobox looses its ...
0
votes
0
answers
36
views
How to make VSCode warn me about missing libraries in a .fxml file?
When editing a .fxml file in InteliJ the IDE flags objects that don't have their libraries imported yet with the red underline, letting you simply hover it and import.
I've looked through the features ...
0
votes
0
answers
26
views
JavaFx and Springboot program isn't switching scenes [duplicate]
I've been trying to learn settings up a program using javafx and springboot. I have primarily used github examples to get started with learning how to do this, if there's an easier way please let me ...
0
votes
1
answer
134
views
How do I solve Nashorn removal and JS replacement in Netbeans 22?
Despite having followed every procedure exactly as specified to install an alternative to Nashorn in Netbeans 22, I still get the following error when trying to build a FXML project:
Java 15 has ...
-1
votes
0
answers
29
views
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application error
So i have been working on this online quiz application, but i am unable to resolve this error. I tried re-downloading all jar files and setting them up again in build path, I have also verified my ...
0
votes
1
answer
62
views
Java FXML, change label text, pause GUI for x seconds, then change label text again
I'm currently working on a Pokémon fangame, and I have a problem (not the last).
So here is the thing, since it's a round by round game, I have to do this:
Decide which Pokémon attack first.
Change ...
1
vote
1
answer
69
views
Why doesn't this Kotlin-backed FXML element get initialized or displayed?
I want to write reusable, composable JavaFX/FXML components in Kotlin. I am using Java 21 and my JavaFX is provided by gradle at version 22.0.1
My main class is loading the initial scene in a window ...
3
votes
1
answer
50
views
How to detect 'onMouseMoved' on the entire scene?
I'm trying to detect if mouse is moving over the entire scene or not to close the app after 15min of inactivity.
In the example I have an Anchorpane occupying the entire scene with an OnMouseMoved ...
2
votes
2
answers
91
views
JavaFX Scene Builder: How to set text color in ComboBox?
I created a JavaFX ComboBox with JavaFX Scene Builder 21.0.0.
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene....
3
votes
1
answer
49
views
The issue of using Read-Only List Properties in FXML
I am studying the official FXML documentation and have encountered some issues.
public class FxmlTest extends Application {
public static void main(String[] args) {
launch(args);
}
...
1
vote
1
answer
39
views
Scene builder failing to display custom TableView compiled with Java 17
I'm working on a javafx application so naturally I've had to use Scene Builder to display and manipulate fxml files. Everything seemed to be working fine until I decided to create a custom TableView ...
-1
votes
1
answer
39
views
JavaFX: fxmlloader is recursive, and I keep getting null pointer exceptions on the instance variables in the controller class
This is the class definition of PostView, which is also the controller class for its fxml file. I am trying to make a javaFX social media app for a university assignment (due in a couple hours lol) ...
0
votes
1
answer
39
views
display an image in FXML
I want to display a certain image in javaFX so I am creating it in the FXML file to manipulate it later on in controller.java file but I keep getting errors after errors. this is the lastest one
...