I made a Desktop application. I made it using Netbeans 7 IDE.
In it, I have created a menu called look and feel. I created it by dragging the menu from palette. The menu items are Window,Metal and Motif. I want the look and feel to change on menu item selection. The menu items are checkbox menu items. I right clicked on the menu item and selected event in netbeans and added a few codes. But when I select the menu item after running the project, nothing happens and the GUI gets frozen.
Please suggest a solution.
I’d suggest you to use radio buttons instead.Now to your problem,
I’m not sure what these codes are, but I guess this might be missing,
So after this,
You need to these too,