3 public class MainWindowsView
extends JFrame
{
4 MainWindowsView(String title
) {
5 //Create and set up the window.
7 setDefaultCloseOperation(JFrame
.EXIT_ON_CLOSE
);
9 JPanel panel
= new PersonView();
11 //TODO: Add content to the panel
12 //JLabel label = new JLabel("Hello World");
15 getContentPane().add(panel
);
19 * Show the GUI. For thread safety,
20 * this method should be invoked from the
21 * event-dispatching thread.
23 public void showGUI() {
27 this.setVisible(true);