List of usage examples for javax.swing UnsupportedLookAndFeelException printStackTrace
public void printStackTrace()
From source file:cl.almejo.vsim.Main.java
private void setNativeLookAndFeel() { try {//from w w w . ja va2 s.c o m UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); GTKHelper.installGtkPopupBugWorkaround(); } catch (UnsupportedLookAndFeelException ex) { ex.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } }
From source file:ro.nextreports.designer.NextReports.java
private void setLookAndFeel() { try {/*from w ww. j a v a2 s. co m*/ PlasticLookAndFeel.setCurrentTheme(new ExperienceBlue()); UIManager.setLookAndFeel(new PlasticXPLookAndFeel()); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); LOG.error(e.getMessage(), e); } }
From source file:zsk.JFCMainClient.java
/** Interfaccia generale pubblica * @param args/* ww w .ja va 2 s . c om*/ * @param silentMode * @param downloadDir */ public static void fpInit(final String[] args, final boolean silentMode, final String downloadDir) { Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { debugoutput("shutdown hook handler."); if (JFCMainClient.frame == null) { JFCMainClient.shutdownAppl(); } debugoutput("shutdown hook handler. end run()"); } }); try { // load from file config = new XMLConfiguration(szConfigFile); debugoutput("configuration loaded from file: ".concat(config.getBasePath())); // create empty config entries? } catch (ConfigurationException e1) { debugoutput("configuration could not be load from file: ".concat(szConfigFile) .concat(" creating new one.")); config = new XMLConfiguration(); } JFCMainClient.saargs = args; if (args.length > 0) { bIsCLI = true; runCLI(silentMode, downloadDir); } else { try { UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); } catch (UnsupportedLookAndFeelException ex) { ex.printStackTrace(); } catch (IllegalAccessException ex) { ex.printStackTrace(); } catch (InstantiationException ex) { ex.printStackTrace(); } catch (ClassNotFoundException ex) { ex.printStackTrace(); } catch (java.lang.InternalError ie) { System.err.println(ie.getMessage()); printHelp(); System.exit(1); } // try { /*javax.swing.SwingUtilities.invokeAndWait(new Runnable() { });*/ guiThread = new Thread(new Runnable() { public void run() { try { initializeUI(silentMode, downloadDir); while (!guiThread.isInterrupted()) { } } catch (java.awt.HeadlessException he) { System.err.println(he.getMessage()); JFCMainClient.printHelp(); System.exit(1); } } }); guiThread.start(); // } catch (InterruptedException e) { // e.printStackTrace(); // } catch (InvocationTargetException e) { // e.printStackTrace(); // } } // if }