List of usage examples for com.jgoodies.looks.plastic Plastic3DLookAndFeel Plastic3DLookAndFeel
public Plastic3DLookAndFeel()
From source file:tufts.vue.VueApplet.java
License:Educational Community License
public void init() { super.init(); this.setBackground(new Color(225, 225, 225)); try {// w w w . j a v a2s . c o m UIManager.put("ClassLoader", LookUtils.class.getClassLoader()); UIManager.setLookAndFeel(new Plastic3DLookAndFeel()); } catch (Exception e) { System.out.println("Couldn't load jlooks look and feel"); } //I think the redone content window makes this code moot. /* GUI.invokeAfterAWT(new Runnable() { public void run() { if (VUE.getDRBrowser() != null) VUE.getDRBrowser().loadDataSourceViewer(); // Kick-off tufts.vue.VueDataSource viewer build threads: // must be done in AWT to be threadsafe, as involves // non-synhcronized code in tufts.vue.VueDataSource while // setting up the threads // DataSourceViewer.cacheDataSourceViewers(); }}); */ }
From source file:UI.LoginPage.java
License:Open Source License
/** * Auto-generated main method to display this JFrame *//*from ww w . j ava2s . co m*/ public static void main(String[] args) { JFrame.setDefaultLookAndFeelDecorated(true); Plastic3DLookAndFeel.setCurrentTheme(new OceanTheme()); try { UIManager.setLookAndFeel(new Plastic3DLookAndFeel()); } catch (UnsupportedLookAndFeelException e) { // TODO Auto-generated catch block e.printStackTrace(); } SwingUtilities.invokeLater(new Runnable() { public void run() { LoginPage inst = new LoginPage(); inst.setLocationRelativeTo(null); inst.setVisible(true); } }); }