File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
launcher-gui/src/main/java/org/taumc/launcher/gui Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ protected Dimension getDefaultDimensions() {
3434 private void loadWindowBounds () {
3535 Preferences prefs = windowBounds ();
3636 var defaultSize = getDefaultDimensions ();
37- int x = prefs .getInt (PREFIX + windowBoundsKey + ".x" , Integer .MIN_VALUE );
38- int y = prefs .getInt (PREFIX + windowBoundsKey + ".y" , Integer .MIN_VALUE );
37+ int x = Integer . MIN_VALUE ; // prefs.getInt(PREFIX + windowBoundsKey + ".x", Integer.MIN_VALUE);
38+ int y = Integer . MIN_VALUE ; // prefs.getInt(PREFIX + windowBoundsKey + ".y", Integer.MIN_VALUE);
3939 int w = prefs .getInt (PREFIX + windowBoundsKey + ".w" , defaultSize .width );
4040 int h = prefs .getInt (PREFIX + windowBoundsKey + ".h" , defaultSize .height );
4141
Original file line number Diff line number Diff line change @@ -110,15 +110,18 @@ public void mousePressed(MouseEvent e) {
110110
111111 // Panel to go above split pane
112112 JButton addInstanceButton = new JButton ("Add Instance" );
113+ addInstanceButton .putClientProperty (FlatClientProperties .BUTTON_TYPE , FlatClientProperties .BUTTON_TYPE_BORDERLESS );
113114 addInstanceButton .addActionListener (e -> this .showCreateInstanceDialog ());
114115 JButton importButton = new JButton ("Import Instance" );
116+ importButton .putClientProperty (FlatClientProperties .BUTTON_TYPE , FlatClientProperties .BUTTON_TYPE_BORDERLESS );
115117 importButton .addActionListener (e -> this .showImportInstanceDialog ());
116118 JPanel topPanel = new JPanel ();
117119 topPanel .setLayout (new BoxLayout (topPanel , BoxLayout .X_AXIS ));
118120 topPanel .add (addInstanceButton );
119121 topPanel .add (importButton );
120122
121123 JButton settingsButton = new JButton ("Settings" );
124+ settingsButton .putClientProperty (FlatClientProperties .BUTTON_TYPE , FlatClientProperties .BUTTON_TYPE_BORDERLESS );
122125 settingsButton .addActionListener (e -> new GlobalSettingsView ());
123126
124127 //accountComboBox.setMaximumSize(new Dimension(50, accountComboBox.getPreferredSize().height));
You can’t perform that action at this time.
0 commit comments