Update UI.java

The Window is to large, on linux without this line
This commit is contained in:
MrBesen 2018-02-11 23:12:36 +01:00 committed by GitHub
parent 3d24e8e0f3
commit b88f8d0a12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ public class UI implements ActionListener {
//init screen
frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
frame.setSize(830, 220);
frame.setSize(830, ( System.getProperty("os.name").toLowerCase().contains("nix") ? 180 : 220));
save.setText("Save");
save.addActionListener(this);
@ -537,4 +537,4 @@ public class UI implements ActionListener {
setValue(defaultvalue);
}
}
}
}