0

I'm using netbeans IDE and I created a Jframe with two Jpanels one is for Jbuttons and other one is for load another Jpanels to it when clicks those buttons. I tried to do it from buttonclick action.

Jpanel2 j2=new Jpanel2(); 
JPanel1.add(j2); 
j2.setVisible(True);

but this code is not working. I want to know how can I do this. (I think this is also same as loading JinternelFrames)

2
Contributors
1
Reply
13
Views
5 Years
Discussion Span
Last Post by mKorbel
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.