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

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

Introduction

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

Prototype

DarkStar

Source Link

Usage

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  w  w . ja v a 2s .  c o 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:Lab.JfPrincipal.java

public static void main(String args[]) {
    /* Set the Nimbus look and feel */
    //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
    /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
     * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
     *//*from   w w  w  .j a v a 2  s.  c om*/
    try {
        for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
            Plastic3DLookAndFeel.setPlasticTheme(new DarkStar());
            UIManager.setLookAndFeel("com.jgoodies.looks.plastic.PlasticLookAndFeel");
        }
    } catch (ClassNotFoundException ex) {
        java.util.logging.Logger.getLogger(JfPrincipal.class.getName()).log(java.util.logging.Level.SEVERE,
                null, ex);

    } catch (InstantiationException ex) {
        java.util.logging.Logger.getLogger(JfPrincipal.class.getName()).log(java.util.logging.Level.SEVERE,
                null, ex);

    } catch (IllegalAccessException ex) {
        java.util.logging.Logger.getLogger(JfPrincipal.class.getName()).log(java.util.logging.Level.SEVERE,
                null, ex);

    } catch (javax.swing.UnsupportedLookAndFeelException ex) {
        java.util.logging.Logger.getLogger(JfPrincipal.class.getName()).log(java.util.logging.Level.SEVERE,
                null, ex);
    }
    //</editor-fold>

    /* Create and display the form */
    java.awt.EventQueue.invokeLater(new Runnable() {
        public void run() {
            new JfPrincipal().setVisible(true);

        }
    });
}

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.pdfsam.guiclient.utils.ThemeUtility.java

License:Open Source License

/**
 * Sets the theme//from   w  w w  .  java2 s .  c  o  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: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.
 *//*from  ww  w . j  a  v a 2 s .  com*/
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:view.JFramePrincipal.java

private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
    // TODO add your handling code here:
    // lookandfeel muda de cores
    // biblioteca     looksdemo-2.3.1.jar
    //SkyBlue()/*from  w ww .j av a2s  .  co  m*/
    //BrownSugar()
    //DarkStar()  
    //DesertGreen()
    //Silver()
    //ExperienceRoyale()
    try {
        PlasticLookAndFeel.setPlasticTheme(new DarkStar());
        try {
            UIManager.setLookAndFeel("com.jgoodies.looks.plastic.Plastic3DLookAndFeel");
        } catch (InstantiationException ex) {
            Logger.getLogger(JFramePrincipal.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(JFramePrincipal.class.getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(JFramePrincipal.class.getName()).log(Level.SEVERE, null, ex);
        }

    } catch (ClassNotFoundException ex) {
        ex.printStackTrace();
    }
    SwingUtilities.updateComponentTreeUI(this);

    //JFramePrincipal.setBackground(SystemColor.BLACK);

}