Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-02-2009, 01:05 PM
makpandian's Avatar
Senior Member
 
Join Date: Dec 2008
Location: Chennai
Posts: 253
Rep Power: 2
makpandian is on a distinguished road
Default Help about Java Menubar
Hello i want to do java menu programming.
i have one menubar that contain two menus .
each menu contain two menu item.
i have designed 4 panel for 4 menu items.
when i click the menu button the panel would dispay in main frame.
i dont know to make link menu items and panel.

my main frame contain one menu bar only.


help me.
advance Thanks for ur valuable suggestions
__________________
Mak
(Living @ Virtual World)
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 02-02-2009, 01:21 PM
Darryl.Burke's Avatar
Senior Member
 
Join Date: Sep 2008
Location: Madgaon, Goa, India
Posts: 745
Rep Power: 2
Darryl.Burke is on a distinguished road
Default
Take a look at CardLayout.
How to Use CardLayout (The Java™ Tutorials > Creating a GUI with JFC/Swing > Laying Out Components Within a Container)

db
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 02-02-2009, 01:33 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Take one step at a time and have a try. db gives a nice start to you.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 02-02-2009, 05:07 PM
Steve11235's Avatar
Senior Member
 
Join Date: Dec 2008
Posts: 972
Rep Power: 2
Steve11235 is on a distinguished road
Default
Your JMenuItem's are a subclass of JButton. You need ActionPerformed listeners for each one. The listeners should update the GUI.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 02-03-2009, 05:27 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Better to show your effort on this Mak. Then we can help you a lot.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 02-09-2009, 09:17 AM
Member
 
Join Date: Feb 2009
Location: philippines
Posts: 16
Rep Power: 0
sp_29 is on a distinguished road
Send a message via Yahoo to sp_29
Wink suggestions only
make sure that you have added the menubar to the menu.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
menubar in splitpane masa AWT / Swing 1 12-16-2008 10:01 AM


All times are GMT +2. The time now is 06:26 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org