diff options
author | Simon Rettberg | 2015-07-25 13:13:23 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-07-25 13:13:23 +0200 |
commit | 7ec62b03cf3b0d29c3fdba16bc210050513bd629 (patch) | |
tree | 47928138ed74a18de810df38ad8ff5886a585504 /dozentenmodul/src/main/java/org/openslx/dozmod/App.java | |
parent | [client] Fix upload wizard state checks, fix formatting (diff) | |
download | tutor-module-7ec62b03cf3b0d29c3fdba16bc210050513bd629.tar.gz tutor-module-7ec62b03cf3b0d29c3fdba16bc210050513bd629.tar.xz tutor-module-7ec62b03cf3b0d29c3fdba16bc210050513bd629.zip |
[client] minor changes to jtable handling
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/App.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/App.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java index 13389fd5..6bd54d50 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java @@ -97,13 +97,6 @@ public class App { public static void main(final String[] args) { try { - UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel"); - } catch (ClassNotFoundException | InstantiationException | IllegalAccessException - | UnsupportedLookAndFeelException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } - try { Config.init(); } catch (Exception e) { showAwtMessage("Error loading configuration", e); @@ -128,6 +121,15 @@ public class App { showAwtMessage("Error loading SWT libraries", e); return; } + // Setup swing + try { + UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel"); + } catch (Exception e1) { + try { + UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + } catch (Exception e) { + } + } // setup global thrift connection error handler before anything else // Set master server to use (TODO: make configurable via command line) |