wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Problem with opening new JPanel when separated into different classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem with opening new JPanel when separated into different classes" Watch "Problem with opening new JPanel when separated into different classes" New topic
Author

Problem with opening new JPanel when separated into different classes

Stacy Eleuterius
Greenhorn

Joined: Dec 07, 2000
Posts: 7
I have put my JPanels into separate classes for ease of maintainability. Now I am having problems using the actionevent to get the new panel to come up. How do I do this?
I am trying to open up the jPanel from the class NewPanel from the actionevent located in class Frame1.
Thanks for your assistance.
Code:

[This message has been edited by Stacy Eleuterius (edited March 14, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with opening new JPanel when separated into different classes