in the case of the lookandfeel when I use the setUndecorated (true) code does not work?

0

To remove the exit buttons, minimize and maximize use setUndecorated(true) and it does not work I did it using the netbeans interface in the same way it does not work as I can solve that problem thanks in advance.

Note: I used NoireLookAndFeel with jtatoo.

    
asked by Dalstron 01.12.2017 в 07:13
source

1 answer

0

I sent you a sample of how to implement the look and feel in netbeans.

public static void main(String args[]) {
    try {
        NimRODTheme nt = new NimRODTheme();
        nt.setPrimary(new Color(153, 244, 51));
        nt.setPrimary1(new Color(133, 224, 31));
        nt.setPrimary2(new Color(143, 234, 41));
        nt.setPrimary3(new Color(153, 244, 51));
        nt.setSecondary(new Color(222, 230, 250));
        nt.setSecondary1(new Color(202, 210, 230));
        nt.setSecondary2(new Color(212, 220, 240));
        nt.setSecondary3(new Color(222, 230, 250));
        nt.setMenuOpacity(20);
        nt.setFrameOpacity(20);
        nt.setOpacity(20);
        NimRODLookAndFeel NimRODLF = new NimRODLookAndFeel();
        NimRODLF.setCurrentTheme(nt);
        UIManager.setLookAndFeel(NimRODLF);
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new PRINCIPAL().setVisible(true);

            }
        });
    } catch (UnsupportedLookAndFeelException ex) {
        Logger.getLogger(PRINCIPAL.class.getName()).log(Level.SEVERE, null, ex);
    }
}

I used it numerously when I used swing

    
answered by 02.12.2017 в 03:30