Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

TaxSystem-payers. ArrayList<TaxPayable>trainfo:TaxinfoPanelMain TaxManPanel-searchTax SearchTaxPanel-mainPage:JFrame*Ta

The below image show the UML of the system.TanfoPanelTaMain PanelTaxSystemT.MainPanel TaxSystemSearchTaxPanelin Tante 

TaxSystem -payers:ArrayList -taxinfo:TaxinfoPanel -taxMain:TaxMain Panel -searchTax SearchTaxPanel -mainPage:JFrame +TaxSystem) +addTaxPayable(TaxPayable) +OpenSearchTaxPanel() +process Taxid(taxld:String) +back ToMain() #searchID(taxid:String): TaxPayable

Step by Step Solution

3.48 Rating (155 Votes )

There are 3 Steps involved in it

Step: 1

From the above UML diagram rewrite the TaxSystem class Programme public void testSendMessage throws ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems analysis and design in a changing world

Authors: John W. Satzinger, Robert B. Jackson, Stephen D. Burd

5th edition

9780324593778, 1423902289, 9781305117204, 324593775, 978-1423902287

More Books

Students also viewed these Programming questions

Question

What is the objective of a structured walkthrough?

Answered: 1 week ago