Question: Using JavaFx, write an application that implements a simple text editor. Use a text field and a button to get the file. Read the entire
Using JavaFx, write an application that implements a simple text editor. Use a text field and a button to get the file. Read the entire file as characters and display it in a TextArea. The user will then be able to make changes in the text area. Use a Save button to get the contents of the text area and write that over the text in the original file.
Read each line from the file and then display the line in the text area using a method, maybe called appendText(aString). A method, maybe called getText, will return all of the text area in a string that then can be written to the file.
Step by Step Solution
3.35 Rating (155 Votes )
There are 3 Steps involved in it
To create a simple text editor application using JavaFX youll need to follow a few steps Well outline the process and provide a simple example of how you can implement this Step 1 Set Up JavaFX Applic... View full answer
Get step-by-step solutions from verified subject matter experts
