Objectives • Apply O0 design technique: allocation of classes and responsibilities • Practise 10, Exception handling and
Posted: Tue May 24, 2022 7:49 am
Once the items are read into the program (into an ArrayList), the first item will be displayed, and the buttons will be enabled and disabled accordingly. In the example below, the Load button is disabled to prevent repeated data loading. The Prev button is disabled because there is no item before the first item. Quotation Management D X 21 10 sas Code Quant Price Discount Total Lood The user can browse the items with Prev and Next buttons Quotation Management Code 12 Denty so Price 705 Daca at Total 1725 When the last item is reached, the Next button will be disabled. Quotation Management - 0 Code p Quartty 30 100 Decou 3000 THAM TOW WHAT The program will terminate when the use clicks on the close (0) button at the top, right hand corner. Program Structure Your program will have 3 dasses for more depending on your design) as follow joo 5050 0 X X
When the last item is reached, the Next button will be disabled. Quotation Management Code 04 JQuantity 30 Price 100 Discount 0.05 Total 295.0 Load Prev Next The program will terminate when the use clicks on the close (X) button at the top, right hand corner. Program Structure Your program will have 3 classes (or more depending on your design) as follow. Quotationitem class Please refer to lab 5 for the detail on the class and the data file. Quotation App class This class will extend the JFrame class to provide the GUI for the program. It will make use of the ArrayList and the Quotationitem class to read, store and display the items. TX YY A3 class This class has a main method to create an instance of the QuotationApp class and set the GUI program in motion. Source code comments Please include appropriate header and block comments in the program. Submission Please submit a single Java file (containing the above classes) to Moodle. X