aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes calling second jPanel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "calling second jPanel" Watch "calling second jPanel" New topic

calling second jPanel

Daniel Layher

Joined: Jul 14, 2006
Posts: 19
i'm using netbeans 5.0 to make a GUI application. For some reason, and i'm sure the solution is simple, i can't figure out how to call a second GUI class from the first one. Example, a screen pops up with multiple selections. If i click on one, I want a different GUI window that i made to pop up and later pull variables from that window. I know how to pull the variable but can't seem to make the window appear to begin with. Any suggestions?
Daniel Layher

Joined: Jul 14, 2006
Posts: 19
in case the question was unclear, when i run the program, the main window pops up, but when i make a selection the next window i created won't appear... how do i make the second window appear???
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299

How did you make your first window appear? Answer that, and you will know.

GenRocket - Experts at Building Test Data
It is sorta covered in the JavaRanch Style Guide.
subject: calling second jPanel