Revised Cancel and Save Buttons
* Fixed weird gbl_buttonPane declaration. * Added correct resizing and repositioning of cancel and save buttons when resizing the settings window. * Fixed incorrect buttonName displaying.
This commit is contained in:
parent
bc0a44bca1
commit
d83dc2931f
@ -118,10 +118,10 @@ public class SettingsScreen extends JDialog {
|
|||||||
|
|
||||||
// ButtonPane
|
// ButtonPane
|
||||||
GridBagLayout gbl_buttonPane = new GridBagLayout();
|
GridBagLayout gbl_buttonPane = new GridBagLayout();
|
||||||
gbl_buttonPane.columnWidths = new int[] { 100, 250, 100, 0 };
|
gbl_buttonPane.columnWidths = new int[] { 1, 1};
|
||||||
gbl_buttonPane.rowHeights = new int[] { 25, 0 };
|
gbl_buttonPane.rowHeights = new int[] { 25};
|
||||||
gbl_buttonPane.columnWeights = new double[] { 0.0, 0.0, 0.0, Double.MIN_VALUE };
|
gbl_buttonPane.columnWeights = new double[] { 1.0, 1.0};
|
||||||
gbl_buttonPane.rowWeights = new double[] { 0.0, Double.MIN_VALUE };
|
gbl_buttonPane.rowWeights = new double[] { 0.0};
|
||||||
|
|
||||||
getContentPane().add(buttonPane, BorderLayout.SOUTH);
|
getContentPane().add(buttonPane, BorderLayout.SOUTH);
|
||||||
buttonPane.setLayout(gbl_buttonPane);
|
buttonPane.setLayout(gbl_buttonPane);
|
||||||
|
Reference in New Issue
Block a user