×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: joseifm
Added: Oct 7, 2014 9:54 PM
Modified: Oct 7, 2014 9:57 PM
Views: 19
Tags: java and look feel
Instalar y listar Look and feel disponibles
  1. public principal() {
  2.  
  3. javax.swing.UIManager.installLookAndFeel("Joxy","joxy.JoxyLookAndFeel");        javax.swing.UIManager.installLookAndFeel("Nimrod","com.nilo.plaf.nimrod.NimRODLookAndFeel");
  4. javax.swing.UIManager.installLookAndFeel("Pgs","com.pagosoft.plaf.PgsLookAndFeel");
  5.         javax.swing.UIManager.installLookAndFeel("Seaglass","com.seaglasslookandfeel.SeaGlassLookAndFeel");
  6.        
  7.         initComponents();
  8.        
  9.         UIManager.LookAndFeelInfo[] lafinfo = UIManager.getInstalledLookAndFeels();
  10.         jComboBox1.removeAllItems();
  11.         for (int i=0;i<lafinfo.length;i++){
  12.             jComboBox1.addItem(lafinfo[i].getClassName());
  13.             System.out.println(lafinfo[i].getClassName());
  14.         }
  15.        
  16.     }