Hello
I need your's kind help

add new JPanel on a existing JFrame
here the code  which is not working

*private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
 JPanel obj= new JPanel();
   obj.setBackground(new Color(0,255,0));
   this.getContentPane().add(obj);
       this.validate();
        this.repaint();
        pack();
}

Thanx
*

-- 
To post to this group, send email to javaprogrammingwithpassion@googlegroups.com
To unsubscribe from this group, send email to 
javaprogrammingwithpassion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

Reply via email to