reordered bottom dialog buttons
This commit is contained in:
parent
3a3459a939
commit
3090b82782
1 changed files with 8 additions and 8 deletions
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: ContikiMoteTypeDialog.java,v 1.16 2007/03/22 09:34:50 fros4943 Exp $
|
* $Id: ContikiMoteTypeDialog.java,v 1.17 2007/03/22 15:08:34 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.contikimote;
|
package se.sics.cooja.contikimote;
|
||||||
|
@ -396,13 +396,11 @@ public class ContikiMoteTypeDialog extends JDialog {
|
||||||
buttonPane.setLayout(new BoxLayout(buttonPane, BoxLayout.X_AXIS));
|
buttonPane.setLayout(new BoxLayout(buttonPane, BoxLayout.X_AXIS));
|
||||||
buttonPane.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10));
|
buttonPane.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10));
|
||||||
|
|
||||||
button = new JButton("Test current settings");
|
button = new JButton("Cancel");
|
||||||
button.setActionCommand("testsettings");
|
button.setActionCommand("cancel");
|
||||||
button.addActionListener(myEventHandler);
|
button.addActionListener(myEventHandler);
|
||||||
testButton = button;
|
|
||||||
this.getRootPane().setDefaultButton(button);
|
|
||||||
buttonPane.add(button);
|
|
||||||
buttonPane.add(Box.createRigidArea(new Dimension(10, 0)));
|
buttonPane.add(Box.createRigidArea(new Dimension(10, 0)));
|
||||||
|
buttonPane.add(button);
|
||||||
|
|
||||||
buttonPane.add(Box.createHorizontalGlue());
|
buttonPane.add(Box.createHorizontalGlue());
|
||||||
|
|
||||||
|
@ -412,9 +410,11 @@ public class ContikiMoteTypeDialog extends JDialog {
|
||||||
buttonPane.add(Box.createRigidArea(new Dimension(10, 0)));
|
buttonPane.add(Box.createRigidArea(new Dimension(10, 0)));
|
||||||
buttonPane.add(button);
|
buttonPane.add(button);
|
||||||
|
|
||||||
button = new JButton("Cancel");
|
button = new JButton("Compile & Test");
|
||||||
button.setActionCommand("cancel");
|
button.setActionCommand("testsettings");
|
||||||
button.addActionListener(myEventHandler);
|
button.addActionListener(myEventHandler);
|
||||||
|
testButton = button;
|
||||||
|
this.getRootPane().setDefaultButton(button);
|
||||||
buttonPane.add(Box.createRigidArea(new Dimension(10, 0)));
|
buttonPane.add(Box.createRigidArea(new Dimension(10, 0)));
|
||||||
buttonPane.add(button);
|
buttonPane.add(button);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue