Question: To apply techniques involved in GUI design: To keep track of items in a list. You must use JavaFX not Swing, or any

To apply techniques involved in GUI design:


• To keep track of items in a list.


• You must use JavaFX not Swing, or any other library1 Instructions  you will be building a Favorite Movies application. 


The application should have a list with the items displayed, a textbox for adding new items to the list, and four buttons: Add, Remove, Load, and Save. 


The Add button takes the contents of the text field (textbox) and adds the item in it to the list.


Your code must trim the whitespace in front of or at the end of the input in the text field. Infix whitespace is okay (e.g., Dune 2021, Star Trek 2009, Avengers: End Game.) Also, the text in the textbox should be converted to a lowercase representation (e.g., "Lord of the Flies" is converted to "lord of the flies").


The Remove button removes a selected item from the list. The list should allow the user to select more than one item at a time.


 If no items are selected when the user clicks this remove button, then the application should pop up a message box saying, "Please select an item to delete!" 


The Load button loads the previously saved movie list into the list widget on your interface. The Save button saves a copy of the movie list to a file, named movies.txt. 


If the movies.txt file doesn't exist, this operation creates it. If it does exist, it will simply overwrite it. You should produce a user-friendly interface of your own design. ()

Step by Step Solution

3.42 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To implement the Favorite Movies application using JavaFX we need to create a user interface with the required components list textbox and buttons and ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!