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

Comparing projects/cms/source/conient/uk/org/iscream/cms/conient/ControlPanel.java (file contents):
Revision 1.10 by ajm, Tue Feb 27 03:34:45 2001 UTC vs.
Revision 1.15 by tdb, Sat May 18 18:15:56 2002 UTC

# Line 1 | Line 1
1 + /*
2 + * i-scream central monitoring system
3 + * Copyright (C) 2000-2002 i-scream
4 + *
5 + * This program is free software; you can redistribute it and/or
6 + * modify it under the terms of the GNU General Public License
7 + * as published by the Free Software Foundation; either version 2
8 + * of the License, or (at your option) any later version.
9 + *
10 + * This program is distributed in the hope that it will be useful,
11 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 + * GNU General Public License for more details.
14 + *
15 + * You should have received a copy of the GNU General Public License
16 + * along with this program; if not, write to the Free Software
17 + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18 + */
19 +
20   //---PACKAGE DECLARATION---
21 < package uk.ac.ukc.iscream.conient;
21 > package uk.org.iscream.cms.conient;
22  
23   //---IMPORTS---
24 < import uk.ac.ukc.iscream.util.*;
24 > import uk.org.iscream.cms.server.util.*;
25   import javax.swing.*;
26   import java.awt.BorderLayout;
27 + import java.net.URL;
28   import java.awt.event.ActionListener;
29   import java.awt.event.ActionEvent;
30  
# Line 53 | Line 73 | public class ControlPanel extends JPanel {
73       * to dispatch events to the ConnectionHandler
74       */
75      private JToolBar setupToolBar() {
76 <        JButton connectButton = new JButton("Connect", new ImageIcon("./uk/ac/ukc/iscream/conient/control16.gif"));
76 >        
77 >        JButton connectButton = new JButton("Connect", new ImageIcon("./resources/control16.gif"));
78          connectButton.addActionListener(new ActionListener() {
79              public void actionPerformed(ActionEvent e) {
80                  _actionQueue.add(new Integer(ConnectionHandler.CONNECT));
81              }
82          });
83 <        JButton disconnectButton = new JButton("Disconnect", new ImageIcon("./uk/ac/ukc/iscream/conient/stop16.gif"));
83 >        JButton disconnectButton = new JButton("Disconnect", new ImageIcon("./resources/stop16.gif"));
84          disconnectButton.addActionListener(new ActionListener() {
85              public void actionPerformed(ActionEvent e) {
86                  _actionQueue.add(new Integer(ConnectionHandler.DISCONNECT));
87              }
88          });
89          
90 <        JButton startDataButton = new JButton("Start Data", new ImageIcon("./uk/ac/ukc/iscream/conient/data16.gif"));
90 >        JButton startDataButton = new JButton("Start Data", new ImageIcon("./resources/data16.gif"));
91          startDataButton.addActionListener(new ActionListener() {
92              public void actionPerformed(ActionEvent e) {
93                  _actionQueue.add(new Integer(ConnectionHandler.STARTDATA));
94              }
95          });
96 <        JButton stopDataButton = new JButton("Stop Data", new ImageIcon("./uk/ac/ukc/iscream/conient/stop16.gif"));
96 >        JButton stopDataButton = new JButton("Stop Data", new ImageIcon("./resources/stop16.gif"));
97          stopDataButton.addActionListener(new ActionListener() {
98              public void actionPerformed(ActionEvent e) {
99                  _actionQueue.add(new Integer(ConnectionHandler.STOPDATA));
# Line 87 | Line 108 | public class ControlPanel extends JPanel {
108          bar.add(stopDataButton);
109  
110          bar.add(Box.createGlue());
111 <        JLabel image = new JLabel(new ImageIcon("./uk/ac/ukc/iscream/conient/i-scream.gif"));
111 >        JLabel image = new JLabel(new ImageIcon("./resources/i-scream.gif"));
112          bar.add(image);
113          return bar;
114      }
# Line 150 | Line 171 | public class ControlPanel extends JPanel {
171          bar.add(conientMenu);
172          
173          JMenu connectionMenu = new JMenu("Connection");
174 <        JMenuItem controlConnect = new JMenuItem("Connect", new ImageIcon("./uk/ac/ukc/iscream/conient/control16.gif"));      
174 >        JMenuItem controlConnect = new JMenuItem("Connect", new ImageIcon("./resources/control16.gif"));      
175          controlConnect.addActionListener(new ActionListener() {
176              public void actionPerformed(ActionEvent e) {
177                  _actionQueue.add(new Integer(ConnectionHandler.CONNECT));
178              }
179          });
180          connectionMenu.add(controlConnect);
181 <        JMenuItem controlDisconnect = new JMenuItem("Disconnect", new ImageIcon("./uk/ac/ukc/iscream/conient/stop16.gif"));
181 >        JMenuItem controlDisconnect = new JMenuItem("Disconnect", new ImageIcon("./resources/stop16.gif"));
182          controlDisconnect.addActionListener(new ActionListener() {
183              public void actionPerformed(ActionEvent e) {
184                  _actionQueue.add(new Integer(ConnectionHandler.DISCONNECT));
# Line 165 | Line 186 | public class ControlPanel extends JPanel {
186          });
187          connectionMenu.add(controlDisconnect);
188          connectionMenu.addSeparator();
189 <        JMenuItem dataConnect = new JMenuItem("Start Data", new ImageIcon("./uk/ac/ukc/iscream/conient/data16.gif"));      
189 >        JMenuItem dataConnect = new JMenuItem("Start Data", new ImageIcon("./resources/data16.gif"));      
190          dataConnect.addActionListener(new ActionListener() {
191              public void actionPerformed(ActionEvent e) {
192                  _actionQueue.add(new Integer(ConnectionHandler.STARTDATA));
193              }
194          });
195          connectionMenu.add(dataConnect);
196 <        JMenuItem dataDisconnect = new JMenuItem("Stop Data", new ImageIcon("./uk/ac/ukc/iscream/conient/stop16.gif"));
196 >        JMenuItem dataDisconnect = new JMenuItem("Stop Data", new ImageIcon("./resources/stop16.gif"));
197          dataDisconnect.addActionListener(new ActionListener() {
198              public void actionPerformed(ActionEvent e) {
199                  _actionQueue.add(new Integer(ConnectionHandler.STOPDATA));
# Line 180 | Line 201 | public class ControlPanel extends JPanel {
201          });
202          connectionMenu.add(dataDisconnect);
203          bar.add(connectionMenu);
204 <        
184 <        JMenu helpMenu = new JMenu("Help");
185 <        JMenuItem help = new JMenuItem("Help");
186 <        helpMenu.add(help);
187 <        JMenuItem about = new JMenuItem("About");
188 <        helpMenu.add(about);
189 <        bar.add(helpMenu);
190 <        
204 >              
205          return bar;
206      }
207  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines