28 |
|
/** |
29 |
|
* The initial width of the window |
30 |
|
*/ |
31 |
< |
private final int DEFAULT_WIDTH = 600; |
31 |
> |
private final int DEFAULT_WIDTH = 700; |
32 |
|
|
33 |
|
/** |
34 |
|
* The initial height of the window |
98 |
|
/** |
99 |
|
* Creates a new Swing Client Frame |
100 |
|
*/ |
101 |
< |
private Conient(JPanel data, ControlPanel control) { |
101 |
> |
private Conient(JSplitPane data, ControlPanel control) { |
102 |
|
// set up the Frame |
103 |
|
super("Conient {an i-scream Client}"); |
104 |
|
setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT); |
111 |
|
|
112 |
|
// add the control pane to the top border |
113 |
|
getContentPane().add(control, "North"); |
114 |
< |
|
115 |
< |
// create a scrollable pane for the data in the centre |
116 |
< |
JScrollPane scrollPane = new JScrollPane(data); |
117 |
< |
getContentPane().add(scrollPane, "Center"); |
114 |
> |
// add the data pane to the centre |
115 |
> |
getContentPane().add(data); |
116 |
|
|
117 |
|
// setup the status panel |
118 |
|
JPanel bottom = new JPanel(); |