Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Open a form

 
matthew weeks
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've completely forgotten the syntax for how you open up a form from a button? Obviously its on the actionPerformed of the button.
I know you change something (possibly in the Strings[] args bit) in the form you want to open to something like showForm().
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ummm... what's a "form"? That's not part of the default Swing/AWT API.
 
mo robertson
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
he means a jframe i think
 
matthew weeks
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did mean frame, sorry. Ive done it now anyway
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic