List of usage examples for com.jgoodies.looks.plastic PlasticXPLookAndFeel PlasticXPLookAndFeel
public PlasticXPLookAndFeel()
From source file:org.librazur.blc.Main.java
License:Open Source License
private static void installLF() { log.info("Installing Swing L&F"); try {/*w w w . j ava2 s . c o m*/ LookUtils.setLookAndTheme(new PlasticXPLookAndFeel(), new ExperienceBlue()); } catch (Exception e) { log.warn("Error while setting Swing L&F", e); } }
From source file:org.librazur.ict.Main.java
License:Open Source License
private static void installLF() { try {//from ww w . j a v a 2 s . co m LookUtils.setLookAndTheme(new PlasticXPLookAndFeel(), new ExperienceBlue()); } catch (Exception e) { e.printStackTrace(); } }
From source file:org.qedeq.gui.se.main.GuiOptions.java
License:Open Source License
/** * Constructor.//from www .j ava 2s. c o m */ public GuiOptions() { setSelectedLookAndFeel(new PlasticXPLookAndFeel()); setSelectedTheme(PlasticLookAndFeel.createMyDefaultTheme()); setUseNarrowButtons(true); setTabIconsEnabled(true); setPlasticTabStyle(PlasticLookAndFeel.TAB_STYLE_DEFAULT_VALUE); setPlasticHighContrastFocusEnabled(false); setPopupDropShadowEnabled(null); setMenuBarHeaderStyle(null); setMenuBarPlasticBorderStyle(null); setMenuBarWindowsBorderStyle(null); setMenuBar3DHint(null); setToolBarHeaderStyle(null); setToolBarPlasticBorderStyle(null); setToolBarWindowsBorderStyle(null); setToolBar3DHint(null); }
From source file:org.schreibubi.JCombinations.ui.MainWindow.java
License:Open Source License
/** * @param args/*from w ww. ja v a2s . c om*/ */ public static void main(String[] args) { PlasticLookAndFeel.setPlasticTheme(new ExperienceBlue()); try { UIManager.setLookAndFeel(new PlasticXPLookAndFeel()); // UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { } MainWindow.logger.info("Program started"); // LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory(); // StatusPrinter.print(lc); MainWindow application = new MainWindow(); application.setVisible(true); }
From source file:papertoolkit.PaperToolkit.java
License:BSD License
/** * Sets up parameters for any Java Swing UI we need. Feel free to call this from an external class. If you * use the default PaperToolkit() constructor, it will also use the custom look and feel. All PaperToolkit * utility classes will also use this look and feel. *///ww w .j a va2 s.c om public static void initializeLookAndFeel() { if (!lookAndFeelInitialized) { // JGoodies Look and Feel try { final DarkStar theme = new DarkStar(); PlasticLookAndFeel.setPlasticTheme(theme); UIManager.setLookAndFeel(new PlasticXPLookAndFeel()); } catch (Exception e) { } lookAndFeelInitialized = true; } }
From source file:ro.nextreports.designer.NextReports.java
License:Apache License
private void setLookAndFeel() { try {//from w ww . java2 s. c om PlasticLookAndFeel.setCurrentTheme(new ExperienceBlue()); UIManager.setLookAndFeel(new PlasticXPLookAndFeel()); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); LOG.error(e.getMessage(), e); } }
From source file:ro.nextreports.designer.ui.sqleditor.SqlEditorTester.java
License:Apache License
public SqlEditorTester() { // set look and feel PlasticLookAndFeel lookAndFeel = new PlasticXPLookAndFeel(); PlasticLookAndFeel.setCurrentTheme(new ExperienceBlue()); try {//from ww w .ja v a2 s . com UIManager.setLookAndFeel(lookAndFeel); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); } initComponents(); }
From source file:salomon.engine.controller.LocalController.java
License:Open Source License
/** * @see salomon.engine.controller.IController#start(salomon.engine.platform.IManagerEngine) *//*from w w w . j av a 2 s . co m*/ public void start(IManagerEngine managerEngine) { _managerEngine = managerEngine; SplashScreen.show(); try { PlasticLookAndFeel.setTabStyle(PlasticLookAndFeel.TAB_STYLE_METAL_VALUE); PlasticLookAndFeel.setMyCurrentTheme(new ExperienceBlue()); UIManager.setLookAndFeel(new PlasticXPLookAndFeel()); } catch (Exception e) { LOGGER.warn("Cannot set look&feel!", e); //$NON-NLS-1$ } //TODO: add cascade model support (?) try { _solutionManagerGUI = new SolutionManagerGUI(_managerEngine.getSolutionManager()); _projectManagerGUI = new ProjectManagerGUI(_managerEngine.getProjectManager()); _taskManagerGUI = new TaskManagerGUI(_managerEngine.getTasksManager()); _pluginMangerGUI = new PluginManagerGUI(_managerEngine.getPluginManager()); } catch (PlatformException e) { LOGGER.fatal("", e); //$NON-NLS-1$ Utils.showErrorMessage("ERR_CANNOT_SHOW_GUI"); //$NON-NLS-1$ return; } _actionManager = new ActionManager(_solutionManagerGUI, _projectManagerGUI, _taskManagerGUI, _pluginMangerGUI); _guiMenu = new LocalGUIMenu(_actionManager); ControllerFrame frame = new ControllerFrame(); _solutionManagerGUI.setParent(frame); _projectManagerGUI.setParent(frame); _pluginMangerGUI.setParent(frame); _taskManagerGUI.setParent(frame); _solutionManagerGUI.setActionManager(_actionManager); _pluginMangerGUI.setActionManager(_actionManager); _taskManagerGUI.setActionManager(_actionManager); _projectManagerGUI.setTaskManagerGUI(_taskManagerGUI); SplashScreen.hide(); frame.setContentPane(getJContentPane()); frame.setJMenuBar(getJMenuBar()); frame.setJToolBar(getToolBar()); frame.setControllerPanel(_contentPane); Utils.setParent(frame); //showSolutionChooser(); _solutionManagerGUI.showSolutionChooser(); }