I'm creating an application with Scene Builder, I have the design of how I want the application to look like. However, I'm coding this applications in NetBeans with JavaFX FXML Application, I want to know how to take the user input that can contain integers and strings in the application and store it in a text file called "input.txt" organized into columns.
"input.txt" example:
ID Date StartTime EndTime StartDest EndDest Seats
RD12 15Jul18 18:00 22:00 Portland Miami 64
...And so on
First we have to click on NetBeans IDE 7.0.After come to you have to go for File menu then,New file-->Swing GUI Forms-->click on JFrame Form then its redirect to the New JFrame Form then you have to give the class name,project,location and created files after that you have to click on finish button.Then you redirect to New JFrame Form Where we can drag and drop Label,Radio Button etc, as per as your choice.
parent root=FXMLLoader.load(getClass().getResource("connect.fxml"));//for load the file
int a=Integer.parseInt(jTextField.getText());//for Integer ans String representation
jLable.setText(Integer.tostring(a));//for Integer ans String representation
There are some predefine API Which we can use to get the data and convert it into text file.
I'm creating an application with Scene Builder, I have the design of how I want the application t...