From the above UML diagram, rewrite the TaxSystem class. (2 marks) 1.1. In the constructor, initialize all
Question:
From the above UML diagram, rewrite the TaxSystem class. (2 marks)
1.1. In the constructor, initialize all attributes and set up the mainPage.
1.2. Assign taxMain panel to be the main content pane in the mainPage (an object of JFrame).
1.3. When OpenSearchTaxPanel method is called, it will set the searchTax (an object of JPanel) to be
the main content pane and display the search page.
1.4. When SearchID method is called, it will take tax id as input and search for the taxPayble matched
with the input and return the taxPayble object.
1.5. When ProcessTaxId method is called, it will take tax id as input and search for the taxPayble
matched with the input and display the object information on the taxInfo (an object of JPanel).
Set taxInfo as the main content pane in the mainPage.
2. Design the TaxMain Class (extend from JPanel). It should have two buttons. One is a search button and
another is exit button. When click at the search button, it will call the OpenSearchTaxPanel method to open
the search page. When click at the exit button, it will exit the program. (1 marks)
3. Design the TaxInfo Class (extend from JPanel). It should have one buttons and text area. When
click at the button, the display will move back to main page. The text area is used to display information
that pass through to this panel. (1 marks)
4. Design the SearchTax Class (extend from JPanel). It should have two buttons and one text field. One is the
“Search and display” button and another is the “Back” button. The text field is for user to input the tax id. When
click at the search and display button, it will call the ProcessTaxId method. When click at the Back button,
it will return to the main page
Systems analysis and design in a changing world
ISBN: 978-1423902287
5th edition
Authors: John W. Satzinger, Robert B. Jackson, Stephen D. Burd