From: Erik V. <ev...@us...> - 2010-01-14 20:44:53
|
Update of /cvsroot/rails/18xx/rails/ui/swing/elements In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv3371/rails/ui/swing/elements Modified Files: RadioButtonDialog.java Log Message: Fixed and added alwaysOnTop() Index: RadioButtonDialog.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/ui/swing/elements/RadioButtonDialog.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** RadioButtonDialog.java 11 Jan 2010 23:06:21 -0000 1.6 --- RadioButtonDialog.java 14 Jan 2010 20:44:45 -0000 1.7 *************** *** 59,63 **** setLocation(x, y); ! this.setVisible(true); } --- 59,64 ---- setLocation(x, y); ! setVisible(true); ! setAlwaysOnTop(true); } *************** *** 83,88 **** choiceButtons = new JRadioButton[numOptions]; ! this.getContentPane().setLayout(new GridBagLayout()); ! this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); optionsPane.setLayout(new GridBagLayout()); --- 84,89 ---- choiceButtons = new JRadioButton[numOptions]; ! getContentPane().setLayout(new GridBagLayout()); ! setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); optionsPane.setLayout(new GridBagLayout()); *************** *** 129,133 **** } } else if (arg0.getSource().equals(cancelButton)) { ! return; } this.setVisible(false); --- 130,134 ---- } } else if (arg0.getSource().equals(cancelButton)) { ! chosenOption = -1; } this.setVisible(false); |