diff --git a/mod-director-core/src/main/java/net/jan/moddirector/core/ui/SetupDialog.java b/mod-director-core/src/main/java/net/jan/moddirector/core/ui/SetupDialog.java index 39aa00e..2661f7a 100644 --- a/mod-director-core/src/main/java/net/jan/moddirector/core/ui/SetupDialog.java +++ b/mod-director-core/src/main/java/net/jan/moddirector/core/ui/SetupDialog.java @@ -10,7 +10,7 @@ import java.util.concurrent.CountDownLatch; public class SetupDialog extends JDialog { - private static final int HEIGHT = 500; + private static final int HEIGHT = 600; private static final int WIDTH = (int) (HEIGHT * /* golden ratio */ 1.618); private final ModpackConfiguration configuration; @@ -39,20 +39,14 @@ public ModSelectionPage navigateToSelectionPage(InstallSelector installSelector) } private T updateContent(T newContent, boolean hasNextButton) { - newContent.setPreferredSize(new Dimension(WIDTH - 30, 0)); - newContent.setMaximumSize(new Dimension(WIDTH - 30, Integer.MAX_VALUE)); - JPanel wrapperPanel = new JPanel(); wrapperPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); wrapperPanel.setLayout(new BoxLayout(wrapperPanel, BoxLayout.PAGE_AXIS)); JScrollPane scrollPane = new JScrollPane(newContent); - scrollPane.setSize(WIDTH, HEIGHT - 30); - scrollPane.setMaximumSize(new Dimension(Integer.MAX_VALUE, HEIGHT - 55)); wrapperPanel.add(scrollPane); JPanel consentPanel = new JPanel(); - consentPanel.setMaximumSize(new Dimension(WIDTH, 30)); consentPanel.setLayout(new BorderLayout()); wrapperPanel.add(Box.createVerticalStrut(5)); @@ -68,8 +62,6 @@ private T updateContent(T newContent, boolean hasNextButton) nextLatch = null; } - wrapperPanel.setSize(WIDTH, HEIGHT); - setContentPane(wrapperPanel); revalidate(); diff --git a/mod-director-core/src/main/java/net/jan/moddirector/core/ui/page/ModSelectionPage.java b/mod-director-core/src/main/java/net/jan/moddirector/core/ui/page/ModSelectionPage.java index 0e31388..b3a1ca0 100644 --- a/mod-director-core/src/main/java/net/jan/moddirector/core/ui/page/ModSelectionPage.java +++ b/mod-director-core/src/main/java/net/jan/moddirector/core/ui/page/ModSelectionPage.java @@ -48,8 +48,7 @@ private void setupGroupOption(String groupName, List op JPanel optionPanel = new JPanel(); optionPanel.setLayout(new BoxLayout(optionPanel, BoxLayout.Y_AXIS)); - JRadioButton installRadioButton = new JRadioButton(option.getName()); - installRadioButton.setSelected(option.isSelected()); + JRadioButton installRadioButton = new JRadioButton(option.getName(), option.isSelected()); installRadioButton.addItemListener(e -> option.setSelected(installRadioButton.isSelected())); group.add(installRadioButton); optionPanel.add(installRadioButton);