# | Line 98 | Line 98 | public class Conient extends JFrame { | |
---|---|---|
98 | /** | |
99 | * Creates a new Swing Client Frame | |
100 | */ | |
101 | < | private Conient(JPanel data, JPanel control) { |
101 | > | private Conient(JPanel data, ControlPanel control) { |
102 | // set up the Frame | |
103 | super("Conient {an i-scream Client}"); | |
104 | setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT); | |
105 | < | |
105 | > | setJMenuBar(control.getMenuBar()); |
106 | > | |
107 | // set what happens when the X in the corner is clicked | |
108 | addWindowListener(new WindowAdapter() { | |
109 | public void windowClosing(WindowEvent e) {System.exit(0);} |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |