Example usage for com.jgoodies.looks.plastic PlasticLookAndFeel setPlasticTheme

List of usage examples for com.jgoodies.looks.plastic PlasticLookAndFeel setPlasticTheme

Introduction

In this page you can find the example usage for com.jgoodies.looks.plastic PlasticLookAndFeel setPlasticTheme.

Prototype

public static void setPlasticTheme(PlasticTheme theme) 

Source Link

Document

Sets the theme for colors and fonts used by the Plastic L&F.

After setting the theme, you need to re-install the Look&Feel, as well as update the UI's of any previously created components - just as if you'd change the Look&Feel.

Usage

From source file:sistemas.Sistemas.java

/**
 * @param args the command line arguments
 *//*  www .j a  va  2 s .co  m*/
public static void main(String[] args) {
    // TODO code application logic here
    //MantenerPromocion mant = new MantenerPromocion();
    //mant.setVisible(true);

    try {
        //  UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); 
        PlasticLookAndFeel.setPlasticTheme(new DesertBlue());
        UIManager.setLookAndFeel(new PlasticLookAndFeel());
    } catch (Exception ex) {
        ex.printStackTrace();
    }
    Login prin = new Login();
    prin.setVisible(true);
    //try { Utils.chartExcel(); } catch (Exception e){}
    /*ArrayList<Object> list = SalesManager.queryDailySalesByProduct(6, 9, 2015, 1);
    for(int i = 0; i<list.size();i++)
       System.out.println("cantidad de producto " + i + " :" + (Integer)list.get(i));*/
}

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  w  w  .jav a2 s .  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);

}