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 IDEs, Version Control and other tools and the fly likes JPanel issue -  NetBeans 6.7 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 » Engineering » IDEs, Version Control and other tools
Bookmark "JPanel issue -  NetBeans 6.7 " Watch "JPanel issue -  NetBeans 6.7 " New topic
Author

JPanel issue - NetBeans 6.7

Kog Susej
Greenhorn

Joined: Jul 16, 2009
Posts: 1
Hi,

I have JFrame and JMenu bar. I want to add a JPanel depending on the menu item selected.

Here JPanel is another container with few components like JTable, Jbutton etc.

So when i select a menu item , The action performed method should instantiate the MYJPanel class and add to the JFrame.

Here is code.




Please advice is there a better way to do this. All I need is when user select a menuitem I want a JPanel to be added to the JFrame and Another Jpanel depending on the menu item selected.



My Boss Is A Jewish Carpenter
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPanel issue - NetBeans 6.7
 
Similar Threads
Handling event In Jframe
Question from NickyEng
Arrow Keys not working in JMenu
Creating one class from another
jpanel into jframe