This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "calling second jPanel" Watch "calling second jPanel" New topic
Author

calling second jPanel

Daniel Layher
Greenhorn

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
Greenhorn

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: 15300
    
    6

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


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling second jPanel