This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How to go to another JFrame by pressing JButton in this code? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to go to another JFrame by pressing JButton in this code?" Watch "How to go to another JFrame by pressing JButton in this code?" New topic
Author

How to go to another JFrame by pressing JButton in this code?

lolo hyun
Greenhorn

Joined: Oct 24, 2012
Posts: 1
Buddhika Mawella
Ranch Hand

Joined: Jan 06, 2011
Posts: 40

Run following code and check. Hope that is the functionality you want.



BM
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 44038
    
  33
Welcome to the Ranch
Why do you want a second frame in the first place? You should use internal frames, or dialogues, and should only have one frame per application.
 
Have you checked out Aspose?
 
subject: How to go to another JFrame by pressing JButton in this code?
 
It's not a secret anymore!