# | Line 52 | Line 52 | public class ControlPanel extends JPanel { | |
---|---|---|
52 | } | |
53 | }); | |
54 | ||
55 | + | JButton quitButton = new JButton("Quit"); |
56 | + | quitButton.addActionListener(new ActionListener() { |
57 | + | public void actionPerformed(ActionEvent e) { |
58 | + | _actionQueue.add(new Integer(ConnectionHandler.QUIT)); |
59 | + | } |
60 | + | }); |
61 | + | |
62 | JToolBar bar = new JToolBar(JToolBar.HORIZONTAL); | |
63 | bar.add(connectButton); | |
64 | bar.add(startDataButton); | |
65 | bar.add(stopDataButton); | |
66 | bar.add(disconnectButton); | |
67 | + | bar.add(quitButton); |
68 | return bar; | |
69 | } | |
70 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |