File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Open a form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Open a form" Watch "Open a form" New topic

Open a form

matthew weeks

Joined: Feb 23, 2004
Posts: 15
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

Joined: Oct 18, 2000
Posts: 4121

Ummm... what's a "form"? That's not part of the default Swing/AWT API.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
mo robertson

Joined: Mar 29, 2004
Posts: 24
he means a jframe i think
matthew weeks

Joined: Feb 23, 2004
Posts: 15
I did mean frame, sorry. Ive done it now anyway
I agree. Here's the link:
subject: Open a form
It's not a secret anymore!