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.
Deuced asked 5/10, 2012 at 10:42

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 ...
Puiia asked 2/7, 2014 at 14:18

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 ?
Avens asked 28/3, 2014 at 13:29

3

I would like to get an image from JAR library to my project. <graphic> <ImageView> <Image url="@/toolbarButtonGraphics/general/TipOfTheDay24.gif"/> </ImageView&gt...
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...
Postorbital asked 17/6, 2014 at 9:20

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...
Birdiebirdlike asked 6/9, 2015 at 15:2

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....
Bullnose asked 8/3, 2014 at 15:8

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...
Disservice asked 2/6, 2013 at 4:38

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...
Allomorphism asked 8/12, 2011 at 17:8

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...
Isleana asked 26/4, 2016 at 14:47

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...
Perot asked 9/7, 2016 at 15:17

26

Solved

I have this common issue, as it appears to be. My table view wont refresh my items after I reset them. I have checked the data and it's the new one. I tried multiple solution from internet but no...
Spinney asked 16/6, 2012 at 16:21

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 ?...
Cantle asked 17/2, 2015 at 9:5

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...
Kavanagh asked 26/11, 2015 at 8:26

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

How to create JavaFX TextField look like Android TextField using JavaFX CSS ? For example : I have tried lots of FX css but not achieved look like that . Here http://jsfiddle.net/QKm37/ CSS exis...
Ac asked 19/11, 2014 at 10:34

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 ...
Futile asked 21/5, 2019 at 22:22

© 2022 - 2024 — McMap. All rights reserved.