This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 10171
    
    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: 19654
    
  18

Sounds like a good case for CardLayout.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Don't get me started about those stupid light bulbs.
 
subject: frame navigation
 
Similar Threads
question from preassessment test
Math class permissible in Say 4b?
Guess the pass percentage....
JSTL Question -Marcus Green
The Scientific Miracles