java - UIManager.put not working I my JTabbedPane -


uimanager.put("tabbedpane.selected", color.red); 

it's not working in program. tried many codes, new java swing, don't know whether it's problem code or place placed code.

public class newjframe extends javax.swing.jframe {    public newjframe() {         uimanager.put("tabbedpane.selected", color.red);         initcomponents();     }     @suppresswarnings("unchecked")  public static void main(string args[]) {         try {             (javax.swing.uimanager.lookandfeelinfo info : javax.swing.uimanager.getinstalledlookandfeels()) {                 if ("nimbus".equals(info.getname())) {                     javax.swing.uimanager.setlookandfeel(info.getclassname());                     break;                 }             }         } catch (classnotfoundexception ex) {             java.util.logging.logger.getlogger(newjframe.class.getname()).log(java.util.logging.level.severe, null, ex);         } catch (instantiationexception ex) {             java.util.logging.logger.getlogger(newjframe.class.getname()).log(java.util.logging.level.severe, null, ex);         } catch (illegalaccessexception ex) {             java.util.logging.logger.getlogger(newjframe.class.getname()).log(java.util.logging.level.severe, null, ex);         } catch (javax.swing.unsupportedlookandfeelexception ex) {             java.util.logging.logger.getlogger(newjframe.class.getname()).log(java.util.logging.level.severe, null, ex);         }         //</editor-fold>          /* create , display form */         java.awt.eventqueue.invokelater(new runnable() {             public void run() {                 new newjframe().setvisible(true);             }         });     }      // variables declaration - not modify                          private javax.swing.jpanel jpanel1;     private javax.swing.jpanel jpanel2;     private javax.swing.jtabbedpane jtabbedpane1;     // end of variables declaration                    } 


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -