1 |
|
//---PACKAGE DECLARATION--- |
2 |
< |
package uk.ac.ukc.iscream.conient; |
2 |
> |
package uk.org.iscream.cms.conient; |
3 |
|
|
4 |
|
//---IMPORTS--- |
5 |
|
import javax.swing.*; |
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 |
75 |
|
// the main frame (passed the two panels) |
76 |
|
Conient client = new Conient(data, control); |
77 |
|
conientFrame = (Frame) client; |
78 |
< |
Conient.addMessage("Conient {an i-scream Client} © 2001 University of Kent & Project i-scream"); |
78 |
> |
Conient.addMessage("Conient {an i-scream Client} (c) 2001 The i-scream Project (http://www.i-scream.org.uk)"); |
79 |
|
|
80 |
|
Conient.addMessage("Conient ready."); |
81 |
|
|
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(); |
136 |
|
getContentPane().add(bottom, "South"); |
137 |
|
|
138 |
|
// a nice icon for the window |
139 |
< |
setIconImage((new ImageIcon("./uk/ac/ukc/iscream/conient/server.gif")).getImage()); |
139 |
> |
setIconImage((new ImageIcon("./resources/server.gif")).getImage()); |
140 |
|
|
141 |
|
// and just because we can, a silly splash screen |
142 |
< |
// of the dudes that did this funky gibble |
142 |
> |
// of the dudes that did this funky jibble |
143 |
|
Splash splash = new Splash(); |
144 |
|
splash.show(); |
145 |
|
// wait |
258 |
|
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); |
259 |
|
JPanel splash = new JPanel(); |
260 |
|
splash.setBackground(Color.black); |
261 |
< |
JLabel image = new JLabel((new ImageIcon("./uk/ac/ukc/iscream/conient/i-scream-splash.gif"))); |
261 |
> |
JLabel image = new JLabel((new ImageIcon("./resources/i-scream-splash.gif"))); |
262 |
|
splash.add(image); |
263 |
|
setContentPane(splash); |
264 |
|
Dimension screen = getToolkit().getScreenSize(); |