Home arrow static arrow Java Programming [Archive] - Help with Panel
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Help with Panel
This topic has 1 reply on 1 page.

Posts:112
Registered: 10/8/03
Help with Panel  
Jun 17, 2004 9:18 AM



 
Ok, I am trying to make a simple app that will open a panel in the frame when a button is clicked.
The problem is, I want the panel to be a seperate class and get all its commands from there...
how do I do this? I know how to make objects and panels, just not how to combine them.
 

Posts:96
Registered: 5/19/04
Re: Help with Panel  
Jun 17, 2004 10:24 AM (reply 1 of 1)



 
Ok, I am trying to make a simple app that will open a
panel in the frame when a button is clicked.
If I understand you right, just attach an ActionListener to your button
and add a panel to your frame with frame.add().

Make a reference to the Panel
known to the class or package and you can do whatever you want
to do with this Panel.
 
This topic has 1 reply on 1 page.