Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

frame navigation

 
Basavaraj Patil
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11070
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rob Spoor
Sheriff
Pie
Posts: 20555
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a good case for CardLayout.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic