window size

This commit is contained in:
Branislav Stojkovic
2017-05-08 11:56:41 +02:00
parent aa5b81d0e5
commit df1331811c
4 changed files with 10 additions and 18 deletions
Binary file not shown.
Binary file not shown.
@@ -41,16 +41,6 @@ public class DIYLCStarter {
* @param args
*/
public static void main(String[] args) {
URL url = DIYLCStarter.class.getResource("log4j.properties");
Properties properties = new Properties();
try {
properties.load(url.openStream());
PropertyConfigurator.configure(properties);
} catch (Exception e) {
LOG.error("Could not initialize log4j configuration", e);
}
// Initialize splash screen
final SplashScreen splash = SplashScreen.getSplashScreen();
if (splash != null) {
@@ -82,13 +72,15 @@ public class DIYLCStarter {
t.start();
}
}
// try {
// Thread.sleep(20000);
// } catch (InterruptedException e1) {
// // TODO Auto-generated catch block
// e1.printStackTrace();
// }
URL url = DIYLCStarter.class.getResource("log4j.properties");
Properties properties = new Properties();
try {
properties.load(url.openStream());
PropertyConfigurator.configure(properties);
} catch (Exception e) {
LOG.error("Could not initialize log4j configuration", e);
}
ConfigurationManager.initialize("diylc");
@@ -86,7 +86,7 @@ public class MainFrame extends JFrame implements ISwingUI {
public MainFrame() {
super("DIYLC 3");
setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
setPreferredSize(new Dimension(1024, 768));
setPreferredSize(new Dimension(1024, 700));
createBasePanels();
menuMap = new HashMap<String, JMenu>();
buttonGroupMap = new HashMap<String, ButtonGroup>();