From: Keith Packard Date: Tue, 9 Aug 2011 03:41:34 +0000 (-0700) Subject: altosui: Add close button to 'fire' dialog X-Git-Tag: 0.9.6.0~44 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=f3985ef8bc69bcec13ce155567a8ed7c5c6051cb altosui: Add close button to 'fire' dialog Easier to hit than the tiny close box in the frame. Signed-off-by: Keith Packard --- 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);