Fixing UI

This commit is contained in:
4pr0n 2014-04-05 09:35:59 -07:00
parent 3dba4b2179
commit 17d544498a
2 changed files with 5 additions and 7 deletions

View File

@ -26,7 +26,7 @@ public class App {
public static void main(String[] args) throws MalformedURLException { public static void main(String[] args) throws MalformedURLException {
logger.info("Initialized ripme v" + UpdateUtils.getThisJarVersion()); logger.info("Initialized ripme v" + UpdateUtils.getThisJarVersion());
UpdateUtils.moveUpdatedJar();
if (args.length > 0) { if (args.length > 0) {
CommandLine cl = handleArguments(args); CommandLine cl = handleArguments(args);

View File

@ -83,7 +83,6 @@ public class MainWindow implements Runnable, RipStatusHandler {
// TODO Configuration components // TODO Configuration components
public MainWindow() { public MainWindow() {
UpdateUtils.moveUpdatedJar();
mainFrame = new JFrame(WINDOW_TITLE); mainFrame = new JFrame(WINDOW_TITLE);
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//mainFrame.setPreferredSize(new Dimension(400, 180)); //mainFrame.setPreferredSize(new Dimension(400, 180));
@ -198,14 +197,13 @@ public class MainWindow implements Runnable, RipStatusHandler {
configurationPanel.setPreferredSize(new Dimension(300, 250)); configurationPanel.setPreferredSize(new Dimension(300, 250));
// TODO Configuration components // TODO Configuration components
JLabel configLabel = new JLabel("Version: " + UpdateUtils.getThisJarVersion()); JLabel configLabel = new JLabel("Version: " + UpdateUtils.getThisJarVersion());
configurationPanel.add(configLabel);
configUpdateButton = new JButton("Check for updates"); configUpdateButton = new JButton("Check for updates");
configUpdateLabel = new JLabel(""); configUpdateLabel = new JLabel("");
gbc.gridy = 1; gbc.gridy = 0; configurationPanel.add(configLabel, gbc);
configurationPanel.add(configUpdateButton, gbc); gbc.gridy = 1; configurationPanel.add(configUpdateButton, gbc);
gbc.gridy = 2; gbc.ipady = 50;
gbc.gridy = 2; configurationPanel.add(configUpdateLabel, gbc);
gbc.ipady = 10; gbc.ipady = 10;
configurationPanel.add(configUpdateLabel, gbc);
gbc.gridy = 0; pane.add(ripPanel, gbc); gbc.gridy = 0; pane.add(ripPanel, gbc);
gbc.gridy = 1; pane.add(statusPanel, gbc); gbc.gridy = 1; pane.add(statusPanel, gbc);