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

frame navigation

Basavaraj Patil
Greenhorn

Joined: Aug 23, 2010
Posts: 1
I am in frame1. on clicking a button i should move to frame2.

What should i do?

Can anyone help me out please :P
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Basavaraj,
Welcome to the Ranch.

Please TellTheDetails .

In general, you should not have/need more than one JFrame instances for your application. Instead of using multiple frames, you should be changing the frame contents.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19718
    
  20

Sounds like a good case for CardLayout.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: frame navigation