Project H
Objective:
To add a basic graphical user interface to an existing program.
- Start with the ShowHierarchy.java file that
you wrote for Project G. Rename it ShowHierarchyGUI.java.
- Instead of entering the fully-qualified class name on the command line, the user will type the name
into a JTextField. Identify it with a
JLabel that reads Class Name.
- Provide a JButton labeled Go that, when clicked, will initiate the
generation of the output.
- The results will be displayed in a JTextArea that has been placed within a JScrollPane.
- All of the above components should be added to a JFrame whose title is Class Hierarchy and
Public members.
- You may use the default BorderLayout for
the JFrame or any other layout manager
you wish.
Submit your work via the CATE form for Project H.
Legend:
method/function
keyword
literal