Questions tagged as 'javafx'

1
answer

How to create a "new file" .txt in java?

My questions are: is this code correct? how do I clear the screen and open the new created file? menuNovo.setOnAction((ActionEvent e) -> { Stage janela = (Stage) areaTexto.getScene().getWindow(); String nome = JOptio...
asked by 02.07.2017 / 22:53
1
answer

Get text from scene builder to create account screen

How do I get text from the FXML file? FXML file field: <TextField fx:id="usernameSU" GridPane.columnIndex="1" /> Controller file: public class signUpController implements Initializable { @FXML private TextField usernameSU;...
asked by 27.05.2017 / 19:12
1
answer

JavaFX 8: Updating the TableView after the window closes

I have a classifications and a classification management screen, from a library system. After registering a new classification, I would like the TableView of classifications in the management screen to be updated showing the new record. I redo t...
asked by 23.02.2017 / 04:08
1
answer

Problems getting data from a Label in JavaFX

Good afternoon, I am starting a simple example for the data acquisition of a Label in JavaFX, however I am having difficulties, most of the sources told me to perform as follows: public class MainApp extends Application { @FXML private Label...
asked by 03.03.2017 / 19:36
2
answers

Load table view with ObservableList

I am trying to load a table view with the result of a query. The result of the query is sent to an ObservableList which is then called in the controller. I do not get any error but it does not show any results either. Can someone help me find...
asked by 17.01.2017 / 17:41
2
answers

Problems adding numbers to an ArrayList

My code looks like this: public class QuestionarioController implements Initializable { InicioController inicio = new InicioController(); Quiz questionario = new Quiz(); @FXML private Label lblPergunta; @FXML private...
asked by 26.10.2016 / 17:36
1
answer

Chess effect on an image using JavaFX

I'm creating a function using JavaFX so that it uses two images and the size of the pixels and returns a third image containing a chess effect from the other two images. Below is the code, public Image xadrez(Image img1, Image img2, int tam...
asked by 09.04.2016 / 22:18
1
answer

JavaFX in Eclipse

Does anyone know how to install JavaFX in eclipse? I tried to find it on the internet but found nothing useful. If anyone can help, thank you. Eclipse version: Luna Service Release 2 (4.4.2) Note: I'm using JDK 8u65     
asked by 31.10.2015 / 21:14
1
answer

Minimize window jfx

My window is missing the system borders. primaryStage.initStyle(StageStyle.UNDECORATED); I created a button to minimize the window but exception when assigning to my stage : @FXML void btnMinimizarOnAction(ActionEvent event) throw...
asked by 12.11.2015 / 19:04
2
answers

Image does not appear after it generates .jar

How do I make my image appear in the application after generating .jar? I'm doing it this way and it's not working. @FXML private ImageView image; @Override public void initialize(URL url, ResourceBundle rb) { File file = new File("src/ico...
asked by 01.06.2015 / 16:03