Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using Multiple Frames!  RSS feed

 
Joebhoy Samijon
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
gud day! how to use multiple frames? My simple java program is using Menus.. When i click the MenuItem, there should be another frame will come out, and thats my problem how it will come out.. need help here!
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your menu item event handler would simply execute the code to create the new frame -- i.e., "new JFrame()", etc. What part are you having trouble with? Do you know how to have a menu item execute some code?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!