diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-08 20:41:34 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-08 20:41:34 -0700 |
commit | f3985ef8bc69bcec13ce155567a8ed7c5c6051cb (patch) | |
tree | 5ce23dce31dfc4d25f65f1aa09814756327f5c03 | |
parent | cbf54a826d12c49b1b1996be247869d5ff4e2236 (diff) |
altosui: Add close button to 'fire' dialog
Easier to hit than the tiny close box in the frame.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | altosui/AltosIgniteUI.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/altosui/AltosIgniteUI.java b/altosui/AltosIgniteUI.java index 42120b92..806b87b9 100644 --- a/altosui/AltosIgniteUI.java +++ b/altosui/AltosIgniteUI.java @@ -43,6 +43,7 @@ public class AltosIgniteUI JToggleButton arm; JButton fire; javax.swing.Timer timer; + JButton close; int apogee_status; int main_status; @@ -402,6 +403,16 @@ public class AltosIgniteUI fire.addActionListener(this); fire.setActionCommand("fire"); + c.gridx = 0; + c.gridy = 4; + c.gridwidth = 2; + c.anchor = GridBagConstraints.CENTER; + close = new JButton ("Close"); + pane.add(close, c); + close.addActionListener(this); + close.setActionCommand("close"); + + pack(); setLocationRelativeTo(owner); |