This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
How do i know if a JFrame is iconified?
Displaying a JWindow
Problem with JTextField
Crypto Challenge Instructions
Trying to get this button to work