fxml Questions
7
Solved
I use JavaFX 2.1 and I created GUI using FXML, in the controller of this GUI I added myTextField.requestFocus();.
But I always get the focus in the other control.
7
Solved
In javaFX to resize a canvas there is no such method to do that, the only solution is to extends from Canvas.
class ResizableCanvas extends Canvas {
public ResizableCanvas() {
// Redraw canvas ...
8
Solved
I´m using a FXML to set my form, but I need to set the limit of characters in textfields. How can I made this ?
3
I would like to get an image from JAR library to my project.
<graphic>
<ImageView>
<Image url="@/toolbarButtonGraphics/general/TipOfTheDay24.gif"/>
</ImageView>...
Lodi asked 24/4, 2019 at 12:19
2
Solved
There are two different stages in my application that are help screens that use the same FXML file. Rather than create 2 FXML files, I would like to use just one and have two controllers that call ...
Greenebaum asked 12/4, 2013 at 6:46
4
I am trying to change the scene in a javafx stage based on menuItem click. Here is my sample.fxml:
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.net.*...
Misshape asked 15/12, 2013 at 12:17
8
Solved
As I understand it, when using FXML to describe a Java FX scene, the controller class is written manually and it's member variables and methods can then be referenced from the .fxml file. When load...
Manta asked 5/2, 2014 at 10:52
5
Solved
I've tried several times and several ways but I can't make my image show on stage as I want. I think it might has to do with the path where java looks for resources, but i'm not sure, since I'm jus...
4
Solved
I am creating a GUI in a java fxml project using netbeans. I wanted to use bootstrap to style the gui but I have noticed that everything in javafx is prefixed with fx-. Is there still a way to get ...
Kinakinabalu asked 21/1, 2014 at 20:9
3
Solved
I am making JavaFX desktop application with core components described in FXML and I would like to offer user the option to change the language. However I have not find any direct way how to change ...
Livvi asked 8/9, 2015 at 18:39
5
Solved
I an working on JavaFX 8 and SceneBuilder. I created some radio buttons in the FXML File and specified a toggleGroup name to a radio button list in that. So, now I want to get the toggleGroup's sel...
6
Solved
I have managed to load a child fxml(sub UI) under a parent fxml (mainMenu UI).
I have created an AnchorPane with id "mainContent". This pane is bound to 4 sides and changes in accords to the stage....
4
Solved
I have one fxml file controlled by one controller. I want to separate the controller into multiple parts as if placed in one controller makes a long code. Unfortunately, fx:controller can only be p...
4
Solved
I can't seem to find any material on the subject. To give a more concrete example, let's say I want to create a simple component that combines a checkbox and a label. Then, populate a ListView with...
5
Solved
I am making a view in SceneBuilder for my JavaFX application. I want my view to be maximized. How can I achieve this in SceneBuilder or the .fxml file?
Demon asked 15/7, 2015 at 9:45
3
Solved
Is there a possibility to use a controller with a JavaFX GUI without using FXML.
I noticed that the FXML file contains an fx-controller attribute to bind the controller but i don't find it an easy...
4
My project is really simple atm. It has two TextFields named latField and longField. All I'm trying to do is print the string values contained in these fields using the getText() method, and occasi...
26
Solved
5
In JavaFX, if I have a scene with 2 VBox elements and each VBox has multiple Label in it.
If I set the top VBox to invisible, why does the bottom VBox not move up the scene where the top VBox was ?...
10
Solved
How can I pass parameters to a secondary window in javafx? Is there a way to communicate with the corresponding controller?
For example:
The user chooses a customer from a TableView and a new wind...
Intemperance asked 6/1, 2013 at 23:33
3
Solved
What is meant by the word "Node" within context of JavaFx/FXML? If I search for this question, all I find are people using the term discussing something else, but no explanation. For exam...
3
Solved
Is @FXML needed for every declaration or just for the first?
In other words, should I use
@FXML
public Label timerLabel = new Label();
@FXML
public TextField mainTextField, projectTextField ;
@FX...
Perturbation asked 13/5, 2015 at 9:1
2
Solved
4
Solved
I am using netbeans and want to use media file from my desktop to replace the boring button.
So this is my code.
I want it so the image becomes the button.
<Button layoutX="252.0" layoutY="...
Fictile asked 10/5, 2015 at 4:8
1
Solved
My JavaFX application has a Label with an fx:id of location. It is defined in an FXML file. When I try to run the application, I get the following error:
java.lang.IllegalArgumentException: Can ...
© 2022 - 2024 — McMap. All rights reserved.