Please program in javafx in netbeansIDE The user should enter the title of a mov
ID: 3855059 • Letter: P
Question
Please program in javafx in netbeansIDE
The user should enter the title of a movie and enter the format when clicking add is should it to the list when hitting the remove button it should remove the elected item from the list. The loaned to and loaned text fields should take user input and when the loan button is hit is should display the information next the selected item in the list in parenthesis when the return button is hit the information in the parenthesis should be deleted. The sort by title should sort the items in the list alphabetically and the sort by date should sort the items that have loaned information next to them first all of this should shown as the GUI example below shows. No previous code is required
Project 2 Your task is to write improve upon your program for Project 1 in two key ways: Replace the menu-driven interface with a GUI. The GUI should look like the image below (1 point) and support the following operations (1 point each): Inserting a new media item Marking an item as on loan Marking an item as returned Removing a media item Avengers DVD Days of Future Past-DVD Guardians of the Galaxy-DVD (Mike on Sun May 15 2016) Iron Man DVD SpiderMan DVD (Jason on Fri Aug 21 2015) Thor DVD Loaned To: By title By date loaned Support two different list orderings: alphabetically by title (1 point) and chronologically by return date (1 point). The user should be able to switch between these two orderings by clicking on the appropriate button in the GUI.See above for an example of title-based ordering and below for an example of date-based ordering.
Explanation / Answer
Hi,
As stated in the problem above , you want to use the netbeans IDE,so in order to complete your program you should go with the HTML 5 and CSS to complete your form UI like if you have to write the textbox you can either go for the drag and drop else you can write the manually the textbox code as:
<input type="textbox" id="txt1"></input>
So, Like this you can do the form UI with all the other controls in the similar fashion and you can put all the controls in the table to have nice and structured look and on the click of Add button you can add the event in which you can call the method in which you are fetchning from the database using the connection string of the database and store that results in any collection like list, hashtable etc. and after that you can also add the event on the checkbox of the sort functionality as in that event you can use the sort method of the collection that you are using to store the results.To remove the item you can use the inbuilt method of the collection and same for the return as well.
In the second div, you can add the loaned menu and on the click of the loan you can again add the event on the server side and in that you can add the code that will fetch the results of loan details from the database table and you can add the result in the some variable and then can show in parenthesis along with item of the collection.
I hope it will solve your problem.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.