Hi, I am trying t make an applet instanciate and setVisible(true) a Jpannel. When I write:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
//a jpanel
teste3 t=new teste3();
t.setVisible(true);
}
It doesn´t show t, if t is a jpanel. If it´s a Jframe it does, but when it closes, the applet closes as well(netbeans sets
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
which you can only edit by hacking).
Thanks,
Rafael
Edited by: Rafael Anschau on 27/02/2011 08:06
Edited by: Rafael Anschau on 27/02/2011 08:07