Question

I'm creating an application with Scene Builder, I have the design of how I want the application t...

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

0 0
Add a comment Improve this question Transcribed image text
Answer #1

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.

Add a comment
Know the answer?
Add Answer to:
I'm creating an application with Scene Builder, I have the design of how I want the application t...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT