ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/conient/uk/org/iscream/cms/conient/Conient.java
(Generate patch)

Comparing projects/cms/source/conient/uk/org/iscream/cms/conient/Conient.java (file contents):
Revision 1.23 by ajm, Mon Feb 26 18:40:25 2001 UTC vs.
Revision 1.35 by tdb, Fri Jan 31 17:05:50 2003 UTC

# Line 1 | Line 1
1 + /*
2 + * i-scream central monitoring system
3 + * http://www.i-scream.org.uk
4 + * Copyright (C) 2000-2002 i-scream
5 + *
6 + * This program is free software; you can redistribute it and/or
7 + * modify it under the terms of the GNU General Public License
8 + * as published by the Free Software Foundation; either version 2
9 + * of the License, or (at your option) any later version.
10 + *
11 + * This program is distributed in the hope that it will be useful,
12 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 + * GNU General Public License for more details.
15 + *
16 + * You should have received a copy of the GNU General Public License
17 + * along with this program; if not, write to the Free Software
18 + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19 + */
20 +
21   //---PACKAGE DECLARATION---
22 < package uk.ac.ukc.iscream.conient;
22 > package uk.org.iscream.cms.conient;
23  
24   //---IMPORTS---
25   import javax.swing.*;
# Line 28 | Line 48 | public class Conient extends JFrame {
48      /**
49       * The initial width of the window
50       */        
51 <    private final int DEFAULT_WIDTH = 600;
51 >    private final int DEFAULT_WIDTH = 700;
52      
53      /**
54       * The initial height of the window
# Line 75 | Line 95 | public class Conient extends JFrame {
95          // the main frame (passed the two panels)
96          Conient client = new Conient(data, control);
97          conientFrame = (Frame) client;
98 <        Conient.addMessage("Conient {an i-scream Client} © 2001 University of Kent & Project i-scream");
98 >        Conient.addMessage("Conient {an i-scream Client} (c) 2001 The i-scream Project (http://www.i-scream.org.uk)");
99  
100          Conient.addMessage("Conient ready.");
101          
# Line 98 | Line 118 | public class Conient extends JFrame {
118      /**
119       * Creates a new Swing Client Frame
120       */
121 <    private Conient(JPanel data, JPanel control) {
121 >    private Conient(JSplitPane data, ControlPanel control) {
122          // set up the Frame
123          super("Conient {an i-scream Client}");
124          setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);
125 <
125 >        setJMenuBar(control.getMenuBar());
126 >        
127          // set what happens when the X in the corner is clicked        
128          addWindowListener(new WindowAdapter() {
129              public void windowClosing(WindowEvent e) {System.exit(0);}
# Line 110 | Line 131 | public class Conient extends JFrame {
131  
132          // add the control pane to the top border
133          getContentPane().add(control, "North");
134 <        
135 <        // create a scrollable pane for the data in the centre
115 <        JScrollPane scrollPane = new JScrollPane(data);
116 <        getContentPane().add(scrollPane, "Center");
134 >        // add the data pane to the centre        
135 >        getContentPane().add(data);
136  
137          // setup the status panel        
138          JPanel bottom = new JPanel();
# Line 137 | Line 156 | public class Conient extends JFrame {
156          getContentPane().add(bottom, "South");
157          
158          // a nice icon for the window
159 <        setIconImage((new ImageIcon("./uk/ac/ukc/iscream/conient/server.gif")).getImage());
159 >        setIconImage((new ImageIcon(getClass().getResource("/resources/server.gif"))).getImage());
160  
161          // and just because we can, a silly splash screen
162 <        // of the dudes that did this funky gibble
162 >        // of the dudes that did this funky jibble
163          Splash splash = new Splash();
164          splash.show();
165          // wait
# Line 259 | Line 278 | public class Conient extends JFrame {
278              setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
279              JPanel splash = new JPanel();
280              splash.setBackground(Color.black);
281 <            JLabel image = new JLabel((new ImageIcon("./uk/ac/ukc/iscream/conient/i-scream-splash.gif")));
281 >            JLabel image = new JLabel((new ImageIcon(getClass().getResource("/resources/i-scream-splash.gif"))));
282              splash.add(image);
283              setContentPane(splash);
284              Dimension screen = getToolkit().getScreenSize();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines