}
}
});
JCheckBox showLauncher = new JCheckBox("Show launcher when starting Chunky");
LauncherSettings settings = new LauncherSettings();
settings.load();
showLauncher.setSelected(settings.showLauncher);
showLauncher.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
JCheckBox source = (JCheckBox) e.getSource();
LauncherSettings settings = new LauncherSettings();
settings.load();
settings.showLauncher = source.isSelected();
settings.save();
}
});
GroupLayout layout = new GroupLayout(optionsPanel);
optionsPanel.setLayout(layout);