• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMenu question  RSS feed

 
Paul Peterson
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have several classes in the same package, and several include JFrame forms. The main from has a JMenu. This really makes me feel stupid for asking, how do I launch the other classes when a menu item is clicked?
 
Stephan van Hulst
Saloon Keeper
Posts: 7743
142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You just create the form and make it visible.
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The menu item is really just another action or action listener.
 
Campbell Ritchie
Sheriff
Posts: 55371
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by launch the other classes? A common way to make something visible when a button is clicked is to create a dialogue.
 
Paul Peterson
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stephan van Hulst wrote:You just create the form and make it visible.


Thank you. Between this answer and youtube, question answered. One day I hope to answer questions here rather than just ask them.
 
Campbell Ritchie
Sheriff
Posts: 55371
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome Keep working, and reading here and you will learn lots.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!