52 |
|
* to dispatch events to the ConnectionHandler |
53 |
|
*/ |
54 |
|
private JToolBar setupToolBar() { |
55 |
< |
JButton connectButton = new JButton("Connect"); |
55 |
> |
JButton connectButton = new JButton("Connect", new ImageIcon("./uk/ac/ukc/iscream/conient/control16.gif")); |
56 |
|
connectButton.addActionListener(new ActionListener() { |
57 |
|
public void actionPerformed(ActionEvent e) { |
58 |
|
_actionQueue.add(new Integer(ConnectionHandler.CONNECT)); |
59 |
|
} |
60 |
|
}); |
61 |
|
|
62 |
< |
JButton startDataButton = new JButton("Start Data"); |
62 |
> |
JButton startDataButton = new JButton("Start Data", new ImageIcon("./uk/ac/ukc/iscream/conient/data16.gif")); |
63 |
|
startDataButton.addActionListener(new ActionListener() { |
64 |
|
public void actionPerformed(ActionEvent e) { |
65 |
|
_actionQueue.add(new Integer(ConnectionHandler.STARTDATA)); |
66 |
|
} |
67 |
|
}); |
68 |
|
|
69 |
< |
JButton stopDataButton = new JButton("Stop Data"); |
69 |
> |
JButton stopDataButton = new JButton("Stop Data", new ImageIcon("./uk/ac/ukc/iscream/conient/stop16.gif")); |
70 |
|
stopDataButton.addActionListener(new ActionListener() { |
71 |
|
public void actionPerformed(ActionEvent e) { |
72 |
|
_actionQueue.add(new Integer(ConnectionHandler.STOPDATA)); |
73 |
|
} |
74 |
|
}); |
75 |
|
|
76 |
< |
JButton disconnectButton = new JButton("Disconnect"); |
76 |
> |
JButton disconnectButton = new JButton("Disconnect", new ImageIcon("./uk/ac/ukc/iscream/conient/stop16.gif")); |
77 |
|
disconnectButton.addActionListener(new ActionListener() { |
78 |
|
public void actionPerformed(ActionEvent e) { |
79 |
|
_actionQueue.add(new Integer(ConnectionHandler.DISCONNECT)); |
80 |
|
} |
81 |
|
}); |
82 |
|
|
83 |
< |
JButton quitButton = new JButton("Quit"); |
83 |
> |
JButton quitButton = new JButton("Quit", new ImageIcon("./uk/ac/ukc/iscream/conient/stop16.gif")); |
84 |
|
quitButton.addActionListener(new ActionListener() { |
85 |
|
public void actionPerformed(ActionEvent e) { |
86 |
|
_actionQueue.add(new Integer(ConnectionHandler.QUIT)); |
93 |
|
bar.add(stopDataButton); |
94 |
|
bar.add(disconnectButton); |
95 |
|
bar.add(quitButton); |
96 |
+ |
bar.add(Box.createGlue()); |
97 |
+ |
JLabel image = new JLabel(new ImageIcon("./uk/ac/ukc/iscream/conient/i-scream.gif")); |
98 |
+ |
bar.add(image); |
99 |
|
return bar; |
100 |
|
} |
101 |
|
|