Questions tagged as 'javafx'

1
answer

What is the best type of field? TextField, slider, ...? For value above 0.1?

I made this layout as an example of a problem I'm having in creating a system, well, in the first value field ( TextField ) I can not let the user enter the value zero, only 0.1 will be allowed up , how do I resolve this? I wanted only...
asked by 28.06.2017 / 02:12
0
answers

How to draw Polylines in JavaFX? [closed]

How do I draw Polylines on a canvas in JavaFX? I'm trying to do something similar: public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null); doub...
asked by 29.06.2017 / 03:00
1
answer

How to delete item from a ComboBox after selecting it?

I use a ComboBox to add an object to a TableView and wanted it to be right after the user clicked on the desired object, this item was added in TableView and exited the ComboBox list. I tried this way but gave N...
asked by 19.05.2017 / 22:37
1
answer

Accents' ^ ~ are not working in Javafx

Hello, I received software that uses Javafx, and was in the development phase needing to be finalized. I'm testing it and realized that Portuguese accents, like: '^ ~ and', are not recognized in the TextField. I have already looked for the of...
asked by 06.06.2017 / 02:05
1
answer

Update label in loop

How do I update a label in a loop on the FXMLDocumentController ? The labels only update after the entire loop is finished and then plays the last information on the screen; package musicaisfx; import java.awt.Font; import java.awt.even...
asked by 30.05.2017 / 07:53
0
answers

Insert folder with project MAVEN javafX

I have a MAVEN project, when I generate the project, it generates the main JAR and the LIB folder, which contains the library, all right until now, what I need is to include another folder with other files so that my jar access when needed. I us...
asked by 29.03.2017 / 16:18
1
answer

javax.faces.validator.BeanValidator.MESSAGE = {1} {0}

I created a form where I have the following Name, Position, Login and Password fields. I am using javax.faces.validator.BeanValidator.MESSAGE={1} {0} to return error message to the user. I know it's working because all the fields are bein...
asked by 02.03.2017 / 16:13
0
answers

Change menu item accelerator menu

I created the following MenuItem , MenuItem item = new MenuItem("Alterar"); KeyCodeCombination acc = new KeyCodeCombination(KeyCode.ENTER, KeyCombination.CONTROL_DOWN); item.setAccelerator(acc); The accelerator a...
asked by 13.12.2016 / 15:03
2
answers

Exchange information between JavaFX windows

Good afternoon, I need to exchange information between different windows with javaFX, I searched the net and I saw that the most common is to use communication of controllers. My scenario is as follows: Home screen the user will select a state i...
asked by 16.11.2016 / 20:49
0
answers

TableView with CheckBox - JavaFX

I'm filling the TableView with a ArrayList<HashMap<String, Object>> and I'm not using a template table but getting the data from ArrayList . When I dial CheckBox , I need to get data from a specific colum...
asked by 01.09.2016 / 15:27