Hi to all, i am a newbie of swing and netbeans
i have this problem, i create a form, in this form i add a menu, in this menu i add a menuItem;
later i create a jpane (in neatbean i use new ->Jpanel Form )l, i add to this jpanel a button and a label .
i write this action for menuItem, i want that when i cliccked menuItem i see the panel
//this code present in Jform
......
import javax.swing.JPanel; //import jpanel
.....
@Action
public void showPanel() {
Panel1 panel = new Panel();
panel.setVisible(true);
}
private JPanel panel;
but dont' work, i dont' have error but i don't see noting
can you help me?
best regads
A.
Edited by: De Curtis on 8-lug-2011 22.32