Instructions: Answer the following questions one at a time. After answering each question, check your answer (by clicking on the check-mark icon if it is available) before proceeding to the next question.
Getting Ready: Before going any further, you should:
If you have not already done so, you must complete the lab on serialization before you can start this lab.
TaxezeWindow class, paying particular
attention to the sections that involve the menu bar.
TaxezeController class, paying particular
attention to the sections of the actionPerformed()
method that involve the menu bar.
read() method in
the TaxezeController class, paying particular
attention to how the FileNameExtensionFilter is used
and to how tax calculations are enabled after the files are read.
Open.png into the project (from a file explorer into
Eclipse).
OPEN and WRITE to the
TaxezeWindow class.
OPEN
JButton (with the
icon Open.png) to the left of the CALCULATE button.
OPEN
JMenuItem to the FILE
menu.
WRITE
JMenuItem to the
UTILITIES menu (and disable it in an appropriate place).
WRITE
JMenuItem need to be an
attribute and not a local variable?
TaxezeWindow
class:
public void enableWrite(boolean enable)
that can be used to disable/enable writeItem.
FileNameExtensionFilter in
the TaxezeController class that can be used
for .txs files.
write() method to
the TaxezeController class (modeled after the
read() method) that can be called in response to
WRITE requests.
actionPerformed() method in the
TaxezeController class that calls the write()
method in response to WRITE requests.
open() method to
the TaxezeController class (modeled after the
read() method) that can be called in response to
OPEN requests.
actionPerformed() method in the
TaxezeController class that calls the open()
method in response to OPEN requests.
setTaxScheduleIsAvailable() method in the
TaxezeController class that enables the
WRITE menu item.
read()
and open() methods.
Copyright 2021