Example usage for com.jgoodies.looks.plastic.theme SkyBlue SkyBlue

List of usage examples for com.jgoodies.looks.plastic.theme SkyBlue SkyBlue

Introduction

In this page you can find the example usage for com.jgoodies.looks.plastic.theme SkyBlue SkyBlue.

Prototype

SkyBlue

Source Link

Usage

From source file:ch.hsr.audiotagger.AudioTaggerApplication.java

License:Open Source License

public static void main(String[] args) throws Exception {
    /* Vorbereiten: */
    initSettings();//from w w w  .j a v a  2 s . co  m
    boolean isMac = false;
    if (Settings.getInstance().getBoolean(Settings.KEY_COMMON_ENABLE_MAC_DETECTION)) {
        isMac = isMac();
    }

    /* Look&Feel: */
    if (!isMac) {
        try {
            PlasticLookAndFeel.setPlasticTheme(new SkyBlue());
            UIManager.setLookAndFeel(new PlasticXPLookAndFeel());
        } catch (UnsupportedLookAndFeelException e) {
            e.printStackTrace();
        }

    } else {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (UnsupportedLookAndFeelException e) {
            e.printStackTrace();
        }
    }
    GUIImageManager.loadImageManager("/ch/hsr/audiotagger/ui/res/");

    /* Platformspezifisches AudioTaggerFrame instanzieren und anzeigen: */
    AudioTaggerFrame frame = null;
    if (isMac)
        frame = new MacAudioTaggerFrame();
    else
        frame = new UniversalAudioTaggerFrame();

    frame.setVisible(true);
}

From source file:etomica.virial.cluster2.mvc.view.ApplicationUI.java

License:Mozilla Public License

/**
 * Translates the THM_CHOICE field into a PlasticThem class instance.
 *///from   w ww .  j  a  va 2s.  co  m
public static PlasticTheme getTheme() {

    if (THM_DESERTBR.equalsIgnoreCase(THM_CHOICE)) {
        return new DesertBluer();
    } else if (THM_EXPERIENCEB.equalsIgnoreCase(THM_CHOICE)) {
        return new ExperienceBlue();
    } else if (THM_EXPERIENCER.equalsIgnoreCase(THM_CHOICE)) {
        return new ExperienceRoyale();
    } else if (THM_LIGHTGRAY.equalsIgnoreCase(THM_CHOICE)) {
        return new LightGray();
    } else if (THM_SILVER.equalsIgnoreCase(THM_CHOICE)) {
        return new Silver();
    } else if (THM_SKYBLUE.equalsIgnoreCase(THM_CHOICE)) {
        return new SkyBlue();
    } else {
        return new SkyKrupp();
    }
}

From source file:it.pdfsam.util.ThemeSelector.java

License:Open Source License

/**
 * Sets the theme/*from w  w  w.  j  av a 2 s.  co  m*/
 * @param theme_number Theme number
 * @return true if no exception in threw
 */
public boolean setTheme(String theme_number) {
    try {
        switch (Integer.parseInt(theme_number)) {
        case 1:
            PlasticLookAndFeel.setPlasticTheme(new DesertBlue());
            break;
        case 2:
            PlasticLookAndFeel.setPlasticTheme(new DesertRed());
            break;
        case 3:
            PlasticLookAndFeel.setPlasticTheme(new Silver());
            break;
        case 4:
            PlasticLookAndFeel.setPlasticTheme(new SkyPink());
            break;
        case 5:
            PlasticLookAndFeel.setPlasticTheme(new SkyKrupp());
            break;
        case 6:
            PlasticLookAndFeel.setPlasticTheme(new SkyYellow());
            break;
        case 7:
            PlasticLookAndFeel.setPlasticTheme(new SkyGreen());
            break;
        case 8:
            PlasticLookAndFeel.setPlasticTheme(new DarkStar());
            break;
        case 9:
            PlasticLookAndFeel.setPlasticTheme(new BrownSugar());
            break;
        case 10:
            PlasticLookAndFeel.setPlasticTheme(new DesertGreen());
            break;
        case 11:
            PlasticLookAndFeel.setPlasticTheme(new ExperienceBlue());
            break;
        case 12:
            PlasticLookAndFeel.setPlasticTheme(new ExperienceGreen());
            break;
        case 13:
            PlasticLookAndFeel.setPlasticTheme(new SkyBlue());
            break;
        case 14:
            PlasticLookAndFeel.setPlasticTheme(new SkyBluer());
        default:
            break;
        }
        return true;
    } catch (NumberFormatException e) {
        return false;
    }
}

From source file:it.pdfsam.utils.ThemeSelector.java

License:Open Source License

/**
 * Sets the theme/*from   w  ww .ja  v a2s .  co m*/
 * @param theme_number Theme number
 * @return true if no exception in threw
 */
public boolean setTheme(String theme_number) {
    try {
        switch (Integer.parseInt(theme_number)) {
        case 1:
            PlasticLookAndFeel.setPlasticTheme(new DesertBlue());
            break;
        case 2:
            PlasticLookAndFeel.setPlasticTheme(new DesertRed());
            break;
        case 3:
            PlasticLookAndFeel.setPlasticTheme(new Silver());
            break;
        case 4:
            PlasticLookAndFeel.setPlasticTheme(new SkyPink());
            break;
        case 5:
            PlasticLookAndFeel.setPlasticTheme(new SkyKrupp());
            break;
        case 6:
            PlasticLookAndFeel.setPlasticTheme(new SkyYellow());
            break;
        case 7:
            PlasticLookAndFeel.setPlasticTheme(new SkyGreen());
            break;
        case 8:
            PlasticLookAndFeel.setPlasticTheme(new DarkStar());
            break;
        case 9:
            PlasticLookAndFeel.setPlasticTheme(new BrownSugar());
            break;
        case 10:
            PlasticLookAndFeel.setPlasticTheme(new DesertGreen());
            break;
        case 11:
            PlasticLookAndFeel.setPlasticTheme(new ExperienceBlue());
            break;
        case 12:
            PlasticLookAndFeel.setPlasticTheme(new ExperienceGreen());
            break;
        case 13:
            PlasticLookAndFeel.setPlasticTheme(new SkyBlue());
            break;
        default:
            break;
        }
        return true;
    } catch (NumberFormatException e) {
        return false;
    }
}

From source file:net.sf.keystore_explorer.gui.LnfUtil.java

License:Open Source License

/**
 * Use supplied l&f.//from  www  . ja  v  a  2  s  .co m
 *
 * @param lnfClassName
 *            L&f class name
 */
public static void useLnf(String lnfClassName) {
    try {
        // Make l&f specific settings - required before setting the l&f
        if (lnfClassName.equals(Plastic3DLookAndFeel.class.getName())) {
            MetalLookAndFeel.setCurrentTheme(new SkyBlue());
            UIManager.put("jgoodies.useNarrowButtons", Boolean.FALSE);
        } else if (lnfClassName.equals(com.jgoodies.looks.windows.WindowsLookAndFeel.class.getName())) {
            UIManager.put("jgoodies.useNarrowButtons", Boolean.FALSE);
        } else if (lnfClassName.equals(MetalLookAndFeel.class.getName())) {
            // Lighten metal/ocean
            MetalLookAndFeel.setCurrentTheme(new LightOceanTheme());
        }

        UIManager.setLookAndFeel(lnfClassName);
    } catch (UnsupportedLookAndFeelException e) {
    } catch (ClassNotFoundException e) {
    } catch (InstantiationException e) {
    } catch (IllegalAccessException e) {
    }
}

From source file:org.codehaus.griffon.runtime.lookandfeel.jgoodies.AbstractJGoodiesLookAndFeelHandler.java

License:Apache License

public AbstractJGoodiesLookAndFeelHandler(@Nonnull String name, @Nonnull LookAndFeel lookAndFeel) {
    super("JGoodies - " + name);
    this.lookAndFeel = lookAndFeel;

    List<JGoodiesLookAndFeelDescriptor> lafs = new ArrayList<>();
    lafs.add(new JGoodiesLookAndFeelDescriptor("BrownSugar", new BrownSugar()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("DarkStar", new DarkStar()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("DesertBlue", new DesertBlue()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("DesertBluer", new DesertBluer()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("DesertGreen", new DesertGreen()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("DesertRed", new DesertRed()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("DesertYellow", new DesertYellow()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("ExperienceBlue", new ExperienceBlue()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("ExperienceGreen", new ExperienceGreen()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("ExperienceRoyale", new ExperienceRoyale()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("LightGray", new LightGray()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("Silver", new Silver()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("SkyBlue", new SkyBlue()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("SkyBluer", new SkyBluer()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("SkyGreen", new SkyGreen()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("SkyKrupp", new SkyKrupp()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("SkyPink", new SkyPink()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("SkyRed", new SkyRed()));
    lafs.add(new JGoodiesLookAndFeelDescriptor("SkyYellow", new SkyYellow()));
    this.supportedDescriptors = lafs.toArray(new JGoodiesLookAndFeelDescriptor[lafs.size()]);
}

From source file:org.jimcat.gui.SwingClient.java

License:Open Source License

/**
 * a call to this Methode will cause the Swing GUI to create a new Frame and
 * show it./*from  w  ww  .  j  a  va  2s.c o  m*/
 */
public void startup() {
    // check if it hasn't been started yet
    if (started) {
        return;
    }

    SplashScreen.setProgressText("Loading Library");
    // create controles
    tagControl = new TagControl(this);
    imageControl = new ImageControl();
    albumControl = new AlbumControl(this);
    smartListControl = new SmartListControl(this);
    // create a new ViewControl
    viewControl = new ViewControl();

    started = true;

    SplashScreen.setProgressText("Creating GUI");
    // SplashScreen.fadeProgressBar();
    // Install LookAndFeel
    try {

        String theme = Configuration.getString("theme", DEFAULT_THEME);

        if (theme.equals("substance")) {
            UIManager.setLookAndFeel(new SubstanceLookAndFeel());
            SubstanceLookAndFeel.setSkin(new OfficeSilver2007Skin());
            UIManager.put(SubstanceLookAndFeel.NO_EXTRA_ELEMENTS, Boolean.TRUE);
            UIManager.put(LafWidget.ANIMATION_KIND, AnimationKind.NONE);
        } else if (theme.equals("jgoodies")) {
            PlasticLookAndFeel.setPlasticTheme(new SkyBlue());
            UIManager.setLookAndFeel(new PlasticXPLookAndFeel());
        }

    } catch (Exception e) {
        e.printStackTrace();
        System.exit(1);
    }

    // Build up Frame - in right Thread
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            startupProcess();
        }
    });
}

From source file:org.pdfsam.guiclient.utils.ThemeUtility.java

License:Open Source License

/**
 * Sets the theme/*from  ww w . j av  a  2 s  .  co  m*/
 * @param themeNumber Theme number
 */
public static void setTheme(int themeNumber) {
    switch (themeNumber) {
    case 1:
        PlasticLookAndFeel.setPlasticTheme(new DesertBlue());
        break;
    case 2:
        PlasticLookAndFeel.setPlasticTheme(new DesertRed());
        break;
    case 3:
        PlasticLookAndFeel.setPlasticTheme(new Silver());
        break;
    case 4:
        PlasticLookAndFeel.setPlasticTheme(new SkyPink());
        break;
    case 5:
        PlasticLookAndFeel.setPlasticTheme(new SkyKrupp());
        break;
    case 6:
        PlasticLookAndFeel.setPlasticTheme(new SkyYellow());
        break;
    case 7:
        PlasticLookAndFeel.setPlasticTheme(new SkyGreen());
        break;
    case 8:
        PlasticLookAndFeel.setPlasticTheme(new DarkStar());
        break;
    case 9:
        PlasticLookAndFeel.setPlasticTheme(new BrownSugar());
        break;
    case 10:
        PlasticLookAndFeel.setPlasticTheme(new DesertGreen());
        break;
    case 11:
        PlasticLookAndFeel.setPlasticTheme(new ExperienceBlue());
        break;
    case 12:
        PlasticLookAndFeel.setPlasticTheme(new ExperienceGreen());
        break;
    case 13:
        PlasticLookAndFeel.setPlasticTheme(new SkyBlue());
        break;
    case 14:
        PlasticLookAndFeel.setPlasticTheme(new SkyBluer());
        break;
    default:
        break;
    }
}

From source file:org.qualipso.interop.semantics.mappingtesting.gui.MainFrame.java

License:LGPL

/**
 * Creates initial GUI components and configures layout.
 * /*from   w ww .j ava 2  s .  c  o  m*/
 */
public MainFrame() {

    // init
    this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
    addWindowListener(this);

    //        // set look and feel
    try {
        Plastic3DLookAndFeel.setCurrentTheme(new SkyBlue());
        UIManager.setLookAndFeel("com.jgoodies.looks.plastic.Plastic3DLookAndFeel");
    } catch (Exception e) {
    }
    this.getContentPane().setBackground(GUIConstants.INNERPANEL_BACKGROUND_COLOR);
    Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
    dim.height -= 35;
    this.setSize(dim);

    // title
    this.setTitle("Mapping Testing Tool");

    // menu
    Menu menu = new Menu();
    Controller.getInstance().setMenu(menu);
    this.setJMenuBar(menu);

    // ontologies and rules pane
    this.ontsAndRulesSplitPane = new OntologiesAndRulesSplitPane();

    // tabbed pane for testing and debugging
    this.tabbedPane = new TestingDebuggingTabbedPane();

    // message panel
    this.messagePanel = MessagePanel.getInstance();

    // structure in split panes
    ontsAndRules_tabbedPaneSplitPane = new JSplitPane();
    ontsAndRules_tabbedPaneSplitPane.setBorder(null);
    ontsAndRules_tabbedPaneSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
    ontsAndRules_tabbedPaneSplitPane.setDividerSize(GUIConstants.DIVIDERSIZE);
    ontsAndRules_tabbedPaneSplitPane.setLeftComponent(tabbedPane);
    ontsAndRules_tabbedPaneSplitPane.setRightComponent(ontsAndRulesSplitPane);
    ontsAndRules_tabbedPaneSplitPane
            .setDividerLocation(GUIConstants.ONTSANDRULES_TABBEDPANEL_DIVIDER_LOCATION((int) dim.getHeight()));

    bottom_RestSplitPane = new JSplitPane();
    bottom_RestSplitPane.setBorder(null);
    bottom_RestSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
    bottom_RestSplitPane.setDividerSize(GUIConstants.DIVIDERSIZE);
    bottom_RestSplitPane.setLeftComponent(ontsAndRules_tabbedPaneSplitPane);
    bottom_RestSplitPane.setRightComponent(messagePanel);
    bottom_RestSplitPane
            .setDividerLocation(GUIConstants.REST_MESSAGEPANEL_DIVIDER_LOCATION((int) dim.getHeight()));

    this.getContentPane().add(bottom_RestSplitPane);
}