Questions tagged as 'javafx'

1
answer

How to get serialized fields with JavaFX reflecition API?

I have a form with several CheckBoxs, which I named c1, c2, c3, c4, c5 ... up to c66. So: @FXML private CheckBox c1; @FXML private CheckBox c2; . . . @FXML private CheckBox c66; Now I want to make an org.bson.Document to put all fields with...
asked by 15.09.2017 / 01:19
1
answer

KeyPressed JavaFX problem

I wanted to trigger an event by pressing the F12 button, but I'm not able to make it fire any action even though I created it in code. Here's an example below. F12.setOnKeyPressed(event -> { if(event.getCode().equals(KeyCode.F12)){...
asked by 19.09.2017 / 16:33
1
answer

BooleanBinding of multiple properties

I made the following structure so that when you make one of the components invisible, the others follow the same configuration. A.visibleProperty().bindBidirectional(B.visibleProperty()); A.visibleProperty().bindBidirectional(C.visiblePropert...
asked by 12.02.2017 / 21:06
1
answer

How to set the root stage of a controller?

I created a login screen that when authenticating redirects to the menu, but making the call by the controller does not work. Main: public class Main extends Application { @Override public void start(Stage primaryStage) throws IO...
asked by 11.05.2016 / 03:41
1
answer

Error creating login screen with JavaFX

Good evening guys, I'm trying to implement a login screen with the following fields, but the other fields do not appear, the user field and password appear Forgot login Click here:
asked by 01.03.2016 / 01:03
1
answer

How to put a MouseCliked event on a table using JavaFX

I'm trying to put a MouseCliked event in my table but this error: java.lang.IllegalArgumentException: argument type mismatch My method looks like this: private void tblArquivosMouseCliked(ActionEvent event) { System.out.println("...
asked by 29.05.2015 / 15:38
1
answer

How to use thread in JavaFX?

Before the main scenario of my JavaFX application appears, I want a class containing a presentation to appear; I can not use the sleep method. A% blank% appears and then the class containing the presentation. I want the presentation windo...
asked by 23.04.2015 / 23:27
1
answer

JavaFX TableView apparently receives the value but shows null

Hello, I'm migrating my program to JavaFX to study only, I want to stop using Swing and only pass the FX, but as in a previous time I gave up due to my difficulty in TableView without delays: I have a problem, my code searches the MySql database...
asked by 03.12.2015 / 13:27
1
answer

Tableview ChangeListener - NPE

I have two TableView ( tabela1 and tabela2 ) side by side. What I need to do is: when selecting an item in tabela1 , select the corresponding item in tabela2 . So far so good, it was easy, but I need to reproduce t...
asked by 31.07.2014 / 01:37
1
answer

Event with KeyPressed Event to open another window JAVAFX

My problem is as follows, this way I'm opening the window I have a problem using the KeyPressed function. So this way my method needs the ActionEvent parameter which when using the getSource () method, returns me the button and open the window c...
asked by 18.09.2017 / 21:41