aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2017-02-09 23:23:29 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2017-02-09 23:23:29 +0100
commit4ea6857c7f14babe1c7130a7418f943186979885 (patch)
tree0dd99fbf5b0b1f127d84b8560dae7758cb38dfa9 /src
parent3127930afa4866ad5e1b45e700045ad656cd2d9e (diff)
downloadlombok-4ea6857c7f14babe1c7130a7418f943186979885.tar.gz
lombok-4ea6857c7f14babe1c7130a7418f943186979885.tar.bz2
lombok-4ea6857c7f14babe1c7130a7418f943186979885.zip
made the installer a little wider; this also fixes bizarre layouting for macosx.
Diffstat (limited to 'src')
-rw-r--r--src/installer/lombok/installer/InstallerGUI.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/installer/lombok/installer/InstallerGUI.java b/src/installer/lombok/installer/InstallerGUI.java
index 5c0efcb4..ff89df89 100644
--- a/src/installer/lombok/installer/InstallerGUI.java
+++ b/src/installer/lombok/installer/InstallerGUI.java
@@ -80,6 +80,7 @@ import lombok.installer.OsUtils.OS;
* Also offers info on what this installer does in case people want to instrument their IDE manually.
*/
public class InstallerGUI {
+ private static final int INSTALLER_WINDOW_WIDTH = 662;
static final AtomicReference<Integer> exitMarker = new AtomicReference<Integer>();
private JFrame appWindow;
@@ -169,7 +170,7 @@ public class InstallerGUI {
constraints.gridy = 2;
container.add(buttonBar, constraints);
- container.setPreferredSize(new Dimension(462, 415));
+ container.setPreferredSize(new Dimension(INSTALLER_WINDOW_WIDTH, 415));
return container;
}
@@ -215,9 +216,9 @@ public class InstallerGUI {
JScrollPane scroller = new JScrollPane(notes);
container.add(scroller, constraints);
- scroller.setPreferredSize(new Dimension(380, 240));
+ scroller.setPreferredSize(new Dimension(INSTALLER_WINDOW_WIDTH - 82, 240));
- container.setPreferredSize(new Dimension(462, 415));
+ container.setPreferredSize(new Dimension(INSTALLER_WINDOW_WIDTH, 415));
return container;
}
@@ -290,7 +291,7 @@ public class InstallerGUI {
constraints.gridy = 4;
container.add(buttonBar, constraints);
- container.setPreferredSize(new Dimension(462, 415));
+ container.setPreferredSize(new Dimension(INSTALLER_WINDOW_WIDTH, 415));
return container;
}
@@ -313,7 +314,7 @@ public class InstallerGUI {
constraints.gridy = 2;
container.add(example, constraints);
- container.setPreferredSize(new Dimension(462, 105));
+ container.setPreferredSize(new Dimension(INSTALLER_WINDOW_WIDTH, 105));
return container;
}
@@ -501,7 +502,7 @@ public class InstallerGUI {
uninstallPlaceholder.setVisible(false);
container.add(uninstallPlaceholder, constraints);
- container.setPreferredSize(new Dimension(462, 296));
+ container.setPreferredSize(new Dimension(INSTALLER_WINDOW_WIDTH, 296));
return container;
}