From a390222aeb0c5bf6982108e6fc0b492e97e43b39 Mon Sep 17 00:00:00 2001 From: bjculkin Date: Thu, 26 Apr 2018 09:14:19 -0400 Subject: Fix stupid pipeline bug --- src/bjc/imgchain/ImgChain.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/bjc/imgchain/ImgChain.java') diff --git a/src/bjc/imgchain/ImgChain.java b/src/bjc/imgchain/ImgChain.java index e4e32cc..b743a34 100644 --- a/src/bjc/imgchain/ImgChain.java +++ b/src/bjc/imgchain/ImgChain.java @@ -15,6 +15,8 @@ import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JOptionPane; +import javax.swing.UIManager; +import javax.swing.UnsupportedLookAndFeelException; import bjc.imgchain.pipeline.Pipeline; @@ -71,6 +73,8 @@ public class ImgChain { */ public static ImgChain chan; + public JFrame frame; + /** * Main method * @@ -80,6 +84,13 @@ public class ImgChain { public static void main(String[] args) { System.out.println("ImgChain Loading..."); + try { + UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + } catch (ClassNotFoundException | InstantiationException | IllegalAccessException + | UnsupportedLookAndFeelException e) { + e.printStackTrace(); + } + chan = new ImgChain(); chan.setupGUI(); @@ -97,7 +108,7 @@ public class ImgChain { * Setup the GUI */ private void setupGUI() { - JFrame frame = new JFrame("ImgChain v1"); + frame = new JFrame("ImgChain v1"); frame.setLayout(new GridLayout(1, 1)); desktop = new JDesktopPane(); -- cgit v1.2.3