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

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

Introduction

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

Prototype

ExperienceRoyale

Source Link

Usage

From source file:de.modlab.smilib.gui.HelpFrame.java

License:Open Source License

/** Creates new form HelpFrame */
public HelpFrame() {

    //custom look and feel
    PlasticLookAndFeel.setPlasticTheme(new ExperienceRoyale());
    try {//from  w w  w  . ja  v  a  2s  .  co  m
        UIManager.setLookAndFeel(new PlasticXPLookAndFeel());
    } catch (UnsupportedLookAndFeelException ex) {
        ex.printStackTrace();
    }

    initComponents();
    this.setVisible(false);
    this.center();
}

From source file:de.modlab.smilib.gui.SmiLibFrame.java

License:Open Source License

/**
 * Creates new form SmiLibFrame/*from  w  w w.  ja va 2  s .  co m*/
 */
public SmiLibFrame() {
    //third party look and feel
    PlasticLookAndFeel.setPlasticTheme(new ExperienceRoyale());
    try {
        UIManager.setLookAndFeel(new PlasticXPLookAndFeel());
    } catch (UnsupportedLookAndFeelException ex) {
        ex.printStackTrace();
    }

    //init
    this.initComponents();

    //custom panels are added
    this.addCustomComponents();

    //frame gets centered
    this.center();

    //frame gets shown
    this.setVisible(true);

    //init of message box
    messageBox = new javax.swing.JOptionPane();
}

From source file:es.GRelatorio.java

/**
 * Creates new form GRelatorio/*w w w  . jav  a 2 s. co m*/
 */
public GRelatorio() {
    initComponents();

    setLocationRelativeTo(null); //projela tela centralizada
    setIconImage(new ImageIcon(getClass().getResource("/es/imagens/logomtbranco2.png")).getImage()); //icone da empresa 

    //mudar design da tela
    try {
        PlasticLookAndFeel.setPlasticTheme(new ExperienceRoyale());
        try {
            UIManager.setLookAndFeel("com.jgoodies.looks.plastic.Plastic3DLookAndFeel");
        } catch (InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {
            Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex);
        }

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

From source file:es.TelaPrototipo.java

/**
 * Creates new form TelaPrototipo/*from  w  ww. j a v  a 2s  . c o m*/
 */
public TelaPrototipo() {
    initComponents();

    setLocationRelativeTo(null); //projela tela centralizada
    setIconImage(new ImageIcon(getClass().getResource("/es/imagens/logomtbranco2.png")).getImage()); //icone da empresa 

    //mudar design da tela
    try {
        PlasticLookAndFeel.setPlasticTheme(new ExperienceRoyale());
        try {
            UIManager.setLookAndFeel("com.jgoodies.looks.plastic.Plastic3DLookAndFeel");
        } catch (InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {
            Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex);
        }

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

}

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

License:Mozilla Public License

/**
 * Translates the THM_CHOICE field into a PlasticThem class instance.
 *///www.  j  ava2s.c om
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: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()]);
}