List of usage examples for com.jgoodies.looks.plastic.theme ExperienceBlue ExperienceBlue
ExperienceBlue
From source file:com.archivas.clienttools.arcmover.gui.HCPDataMigrator.java
License:Open Source License
public static void main(String[] args) { try {//from ww w .ja va 2 s . c o m for (Map.Entry<Object, Object> prop : System.getProperties().entrySet()) { LOG.log(Level.INFO, "System Property: " + prop.getKey() + "=" + prop.getValue()); } PlasticXPLookAndFeel.setPlasticTheme(new ExperienceBlue()); PlasticLookAndFeel.setPlasticTheme(new ExperienceBlue()); UIManager.setLookAndFeel(new PlasticXPLookAndFeel()); // Change label texts per UI bug #21966 UIManager.put(FILE_CHOOSER_LOOK_IN_LABEL_TEXT_PROPERTY, UIManager.getString(FILE_CHOOSER_LOOK_IN_LABEL_TEXT_PROPERTY).replace(":", "")); UIManager.put(FILE_CHOOSER_FILE_NAME_LABEL_TEXT_PROPERTY, UIManager.getString(FILE_CHOOSER_FILE_NAME_LABEL_TEXT_PROPERTY).replace(":", "")); UIManager.put(FILE_CHOOSER_FILES_OF_TYPE_LABEL_TEXT_PROPERTY, UIManager.getString(FILE_CHOOSER_FILES_OF_TYPE_LABEL_TEXT_PROPERTY).replace(":", "")); } catch (Exception e) { LOG.warning("" + e); throw new RuntimeException(e); } SplashDialog splash = new SplashDialog(); try { validateLaunchOK(splash); upgrade(splash); new HCPDataMigrator(splash); } catch (StorageAdapterException e) { LOG.warning("" + e); throw new RuntimeException(e); } }
From source file:com.floreantpos.main.Application.java
License:Open Source License
private void setApplicationLook() { try {/* w w w. j a v a 2s . co m*/ PlasticXPLookAndFeel.setPlasticTheme(new ExperienceBlue()); UIManager.setLookAndFeel(new PlasticXPLookAndFeel()); initializeFont(); } catch (Exception ignored) { } }
From source file:com.floreantpos.main.SetUpWindow.java
License:Open Source License
private void setLookAndFeel() { try {// w w w. j a v a 2s . com PlasticXPLookAndFeel.setPlasticTheme(new ExperienceBlue()); UIManager.setLookAndFeel(new PlasticXPLookAndFeel()); initializeFont(); } catch (Exception ignored) { } }
From source file:com.github.mgeiss.xls2ora.Xls2Ora.java
License:Apache License
public static void main(String[] args) { try {//from w w w . j av a2 s.c o m PlasticLookAndFeel.setPlasticTheme(new ExperienceBlue()); UIManager.setLookAndFeel(new PlasticLookAndFeel()); } catch (Exception ex) { } WorkflowController controller = new WorkflowController(); controller.setStartPanel(new SelectSourcePanel(controller)); }
From source file:com.mrfeinberg.babelizer.app.BabelizerMain.java
License:Apache License
public static void main(final String[] args) { try {/*from w w w. j a v a2 s . c o m*/ if (System.getProperty("os.name").toLowerCase().startsWith("win")) { UIManager.put("ClassLoader", LookUtils.class.getClassLoader()); PlasticLookAndFeel.setPlasticTheme(new ExperienceBlue()); UIManager.setLookAndFeel(new PlasticXPLookAndFeel()); } } catch (final Exception e) { System.err.println(e); } new BabelizerMain(); }
From source file:edu.ku.brc.specify.BackupAndRestoreApp.java
License:Open Source License
/** * //from ww w. j ava 2 s . c o m */ public static void startApp() { // Then set this IconManager.setApplicationClass(BackupAndRestoreApp.class); IconManager.loadIcons(XMLHelper.getConfigDir("icons_datamodel.xml")); //$NON-NLS-1$ IconManager.loadIcons(XMLHelper.getConfigDir("icons_plugins.xml")); //$NON-NLS-1$ IconManager.loadIcons(XMLHelper.getConfigDir("icons_disciplines.xml")); //$NON-NLS-1$ try { UIHelper.OSTYPE osType = UIHelper.getOSType(); if (osType == UIHelper.OSTYPE.Windows) { UIManager.setLookAndFeel(new PlasticLookAndFeel()); PlasticLookAndFeel.setPlasticTheme(new ExperienceBlue()); } else if (osType == UIHelper.OSTYPE.Linux) { UIManager.setLookAndFeel(new PlasticLookAndFeel()); } } catch (Exception e) { UsageTracker.incrHandledUsageCount(); edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(BackupAndRestoreApp.class, e); log.error("Can't change L&F: ", e); //$NON-NLS-1$ } ImageIcon helpIcon = IconManager.getIcon("AppIcon", IconSize.Std16); //$NON-NLS-1$ HelpMgr.initializeHelp("SpecifyHelp", helpIcon.getImage()); //$NON-NLS-1$ // Startup Specify BackupAndRestoreApp backupAndRestoreApp = new BackupAndRestoreApp(); RolloverCommand.setHoverImg(IconManager.getIcon("DropIndicator")); //$NON-NLS-1$ // THis type of start up ALWAYS assumes the .Specify directory is in there "home" directory. backupAndRestoreApp.preStartUp(); backupAndRestoreApp.startUp(); }
From source file:edu.ku.brc.specify.extras.FixSQLString.java
License:Open Source License
/** * @param args// w w w. j av a2 s . co m */ public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { @SuppressWarnings("synthetic-access") public void run() { try { UIHelper.OSTYPE osType = UIHelper.getOSType(); if (osType == UIHelper.OSTYPE.Windows) { UIManager.setLookAndFeel(new PlasticLookAndFeel()); PlasticLookAndFeel.setPlasticTheme(new ExperienceBlue()); } else if (osType == UIHelper.OSTYPE.Linux) { UIManager.setLookAndFeel(new PlasticLookAndFeel()); } } catch (Exception e) { edu.ku.brc.af.core.UsageTracker.incrHandledUsageCount(); edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(DataModelClassGenerator.class, e); //log.error("Can't change L&F: ", e); } FixSQLString fix = new FixSQLString(); fix.setVisible(true); } }); }
From source file:edu.ku.brc.specify.Specify.java
License:Open Source License
/** * *//*w w w.j a v a 2 s . com*/ public static void main(String[] args) { // Set App Name, MUST be done very first thing! UIRegistry.setAppName("Specify"); //$NON-NLS-1$ //log.debug("********* Current ["+(new File(".").getAbsolutePath())+"]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ AppBase.processArgs(args); AppBase.setupTeeForStdErrStdOut(true, false); //UIHelper.attachUnhandledException(); SwingUtilities.invokeLater(new Runnable() { @SuppressWarnings("synthetic-access") //$NON-NLS-1$ public void run() { log.debug("Checking for update...."); try { try { UIHelper.OSTYPE osType = UIHelper.getOSType(); if (osType == UIHelper.OSTYPE.Windows) { //UIManager.setLookAndFeel(new WindowsLookAndFeel()); UIManager.setLookAndFeel(new PlasticLookAndFeel()); PlasticLookAndFeel.setPlasticTheme(new ExperienceBlue()); } else if (osType == UIHelper.OSTYPE.Linux) { //UIManager.setLookAndFeel(new GTKLookAndFeel()); UIManager.setLookAndFeel(new PlasticLookAndFeel()); //PlasticLookAndFeel.setPlasticTheme(new SkyKrupp()); //PlasticLookAndFeel.setPlasticTheme(new DesertBlue()); //PlasticLookAndFeel.setPlasticTheme(new ExperienceBlue()); //PlasticLookAndFeel.setPlasticTheme(new DesertGreen()); } else { //PlafOptions.setAsLookAndFeel(); } } catch (Exception e) { log.error("Can't change L&F: ", e); //$NON-NLS-1$ } // Load Local Prefs AppPreferences localPrefs = AppPreferences.getLocalPrefs(); localPrefs.setDirPath(UIRegistry.getAppDataDir()); ProxyHelper.setProxySettingsFromPrefs(); checkDebugLoggerSettings(); //log.error("LocalPrefs: "+(new File(UIRegistry.getAppDataDir())).getCanonicalPath()); // Check to see if we should check for a new version String VERSION_CHECK = "version_check.auto"; if (localPrefs.getBoolean(VERSION_CHECK, null) == null) { localPrefs.putBoolean(VERSION_CHECK, true); } // For Proxies boolean isOKToGetSpecialMsgs = AppPreferences.getLocalPrefs().getBoolean("GET_SPECIAL_MSGS", true); if (isOKToGetSpecialMsgs) { SpecialMsgNotifier smn = new SpecialMsgNotifier(); smn.checkForMessages(); } if (UIRegistry.isEmbedded() && !UIRegistry.isMobile()) { String EZDB_FIRSTTIME = "ezdb.firsttime"; if (localPrefs.getBoolean(EZDB_FIRSTTIME, null) == null) { UIRegistry.showLocalizedMsg("EZDB_FIRSTTIME"); localPrefs.putBoolean(EZDB_FIRSTTIME, true); localPrefs.flush(); } } String EXTRA_CHECK = "extra.check"; Boolean isExtraCheck = localPrefs.getBoolean(EXTRA_CHECK, true); if (isExtraCheck == null) { isExtraCheck = true; localPrefs.putBoolean(EXTRA_CHECK, isExtraCheck); } // Managed Releases // it's never managed for the Release Manager // boolean isReleaseManager = localPrefs.getBoolean("RELEASE_MANAGER", false); // boolean isManagedRelease = localPrefs.getBoolean(MANAGED_RELEASES, false); // boolean isMgrRel = !isReleaseManager && isManagedRelease; // // // Never check if it is a managed release // boolean verChk = localPrefs.getBoolean(VERSION_CHECK, true); // if (localPrefs.getBoolean(VERSION_CHECK, true) && !isMgrRel) // { // if (!isMgrRel) // { // localPrefs.getBoolean(MANAGED_RELEASES, false); // remove it in case it was turned on // } // try // { // com.install4j.api.launcher.SplashScreen.hide(); // ApplicationLauncher.Callback callback = new ApplicationLauncher.Callback() // { // @Override // public void exited(int exitValue) // { // startApp(); // } // // @Override // public void prepareShutdown() // { // // } // }; // //ApplicationLauncher.launchApplication("100", getProxySettings(), true, callback); // // } catch (Exception ex) // { // //ex.printStackTrace(); // log.error(ex); // startApp(); // } // } else // { // if (!isExtraCheck && StringUtils.isNotEmpty(UIRegistry.getAppVersion())) // { // UIRegistry.showLocalizedMsg(null, "SpReg.NOT_REGISTERED"); // } startApp(); // } } catch (Exception ex) { ex.printStackTrace(); log.error(ex); } } }); }
From source file:edu.ku.brc.specify.tools.ireportspecify.MainFrameSpecify.java
License:Open Source License
/** * @param args/*w ww. j a v a2s. com*/ */ public static void main(String[] args) { log.debug("********* Current [" + (new File(".").getAbsolutePath()) + "]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ // This is for Windows and Exe4J, turn the args into System Properties // Set App Name, MUST be done very first thing! //UIRegistry.setAppName("iReports4Specify"); //$NON-NLS-1$ UIRegistry.setAppName("Specify"); //$NON-NLS-1$ UIRegistry.setEmbeddedDBPath(UIRegistry.getDefaultEmbeddedDBPath()); // on the local machine AppBase.processArgs(args); AppBase.setupTeeForStdErrStdOut(true, false); // Then set this IconManager.setApplicationClass(Specify.class); IconManager.loadIcons(XMLHelper.getConfigDir("icons_datamodel.xml")); //$NON-NLS-1$ IconManager.loadIcons(XMLHelper.getConfigDir("icons_plugins.xml")); //$NON-NLS-1$ IconManager.loadIcons(XMLHelper.getConfigDir("icons_disciplines.xml")); //$NON-NLS-1$ Specify.setUpSystemProperties(); AppPreferences localPrefs = AppPreferences.getLocalPrefs(); localPrefs.setDirPath(UIRegistry.getAppDataDir()); adjustLocaleFromPrefs(); HibernateUtil.setListener("post-commit-update", new edu.ku.brc.specify.dbsupport.PostUpdateEventListener()); //$NON-NLS-1$ HibernateUtil.setListener("post-commit-insert", new edu.ku.brc.specify.dbsupport.PostInsertEventListener()); //$NON-NLS-1$ HibernateUtil.setListener("post-commit-delete", new edu.ku.brc.specify.dbsupport.PostDeleteEventListener()); //$NON-NLS-1$ ImageIcon helpIcon = IconManager.getIcon(IconManager.makeIconName("AppIcon"), IconSize.Std16); //$NON-NLS-1$ HelpMgr.initializeHelp("SpecifyHelp", helpIcon.getImage()); //$NON-NLS-1$ try { UIHelper.OSTYPE osType = UIHelper.getOSType(); if (osType == UIHelper.OSTYPE.Windows) { UIManager.setLookAndFeel(new PlasticLookAndFeel()); PlasticLookAndFeel.setPlasticTheme(new ExperienceBlue()); } else if (osType == UIHelper.OSTYPE.Linux) { UIManager.setLookAndFeel(new PlasticLookAndFeel()); } } catch (Exception e) { edu.ku.brc.af.core.UsageTracker.incrHandledUsageCount(); edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(MainFrameSpecify.class, e); log.error("Can't change L&F: ", e); //$NON-NLS-1$ } if (UIHelper.isLinux()) { Specify.checkForSpecifyAppsRunning(); } if (UIRegistry.isEmbedded()) { ProcessListUtil.checkForMySQLProcesses(new ProcessListener() { @Override public void done(PROC_STATUS status) // called on the UI thread { if (status == PROC_STATUS.eOK || status == PROC_STATUS.eFoundAndKilled) { startupContinuing(); // On UI Thread } } }); } else { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { startupContinuing(); } }); } }
From source file:edu.ku.brc.specify.tools.l10nios.StrLocalizerAppForiOS.java
License:Open Source License
/** * @param args/* w w w . j a v a 2 s. c om*/ */ public static void main(String[] args) { setAppName("Specify"); //$NON-NLS-1$ System.setProperty(AppPreferences.factoryName, "edu.ku.brc.specify.config.AppPrefsDBIOIImpl"); // Needed by AppReferences //$NON-NLS-1$ for (String s : args) { String[] pairs = s.split("="); //$NON-NLS-1$ if (pairs.length == 2) { if (pairs[0].startsWith("-D")) //$NON-NLS-1$ { //System.err.println("["+pairs[0].substring(2, pairs[0].length())+"]["+pairs[1]+"]"); System.setProperty(pairs[0].substring(2, pairs[0].length()), pairs[1]); } } else { String symbol = pairs[0].substring(2, pairs[0].length()); //System.err.println("["+symbol+"]"); System.setProperty(symbol, symbol); } } // Now check the System Properties String appDir = System.getProperty("appdir"); if (StringUtils.isNotEmpty(appDir)) { UIRegistry.setDefaultWorkingPath(appDir); } String appdatadir = System.getProperty("appdatadir"); if (StringUtils.isNotEmpty(appdatadir)) { UIRegistry.setBaseAppDataDir(appdatadir); } // Then set this IconManager.setApplicationClass(Specify.class); IconManager.loadIcons(XMLHelper.getConfigDir("icons.xml")); //$NON-NLS-1$ //ImageIcon icon = IconManager.getIcon("AppIcon", IconManager.IconSize.Std16); try { ResourceBundle.getBundle("resources", Locale.getDefault()); //$NON-NLS-1$ } catch (MissingResourceException ex) { Locale.setDefault(Locale.ENGLISH); UIRegistry.setResourceLocale(Locale.ENGLISH); } try { if (!System.getProperty("os.name").equals("Mac OS X")) { UIManager.setLookAndFeel(new Plastic3DLookAndFeel()); PlasticLookAndFeel.setPlasticTheme(new DesertBlue()); } } catch (Exception e) { //whatever } AppPreferences localPrefs = AppPreferences.getLocalPrefs(); localPrefs.setDirPath(UIRegistry.getAppDataDir()); boolean doIt = false; if (doIt) { Charset utf8charset = Charset.forName("UTF-8"); Charset iso88591charset = Charset.forName("ISO-8859-1"); ByteBuffer inputBuffer = ByteBuffer.wrap(new byte[] { (byte) 0xC3, (byte) 0xA2 }); // decode UTF-8 CharBuffer data = utf8charset.decode(inputBuffer); // encode ISO-8559-1 ByteBuffer outputBuffer = iso88591charset.encode(data); byte[] outputData = outputBuffer.array(); System.out.println(new String(outputData)); return; } SwingUtilities.invokeLater(new Runnable() { @Override public void run() { try { UIHelper.OSTYPE osType = UIHelper.getOSType(); if (osType == UIHelper.OSTYPE.Windows) { UIManager.setLookAndFeel(new PlasticLookAndFeel()); PlasticLookAndFeel.setPlasticTheme(new ExperienceBlue()); } else if (osType == UIHelper.OSTYPE.Linux) { UIManager.setLookAndFeel(new PlasticLookAndFeel()); } } catch (Exception e) { log.error("Can't change L&F: ", e); //$NON-NLS-1$ } JFrame frame = new JFrame(getResourceString("StrLocalizerApp.AppTitle")); frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); final StrLocalizerAppForiOS sl = new StrLocalizerAppForiOS(); sl.addMenuBar(frame); frame.setContentPane(sl); frame.setSize(768, 1024); //Dimension size = frame.getPreferredSize(); //size.height = 500; //frame.setSize(size); frame.addWindowListener(sl); IconManager.setApplicationClass(Specify.class); frame.setIconImage(IconManager.getImage(IconManager.makeIconName("SpecifyWhite32")).getImage()); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { sl.startUp(); } }); } }); }