Results 1 to 2 of 2
- 08-19-2011, 08:46 PM #1
Member
- Join Date
- Aug 2011
- Posts
- 1
- Rep Power
- 0
Noob question: How to make smooth window changes?
Hi,
I'm a starter in Java Swing and I have over 5 years of experience in Java. Today I was trying to write a Java Swing GUI witch has to have multiple screens. I mean, like when you are going through a form, witch has many steps. I coded 5 different screens into separate JFrames using NetBeans and finally I created a main class, witch was calling them one by one using ActionEvents, etc.
The problem I have is that when I change from one screen to another I "dispose()" the first screen and then I create the new one, and the transition looks awful. It seems like the first screen closes and then the second screen pops up. I wanted to make it like only the contents of the Frame are changing but I couldn't find a good way to do it.
Can anyone, please, tell me some hints or somewhere to look?
Thx in advance.
- 08-19-2011, 08:55 PM #2
Sounds like a job for CardLayout.
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
Similar Threads
-
Probably Really Noob Question
By bpx95 in forum New To JavaReplies: 2Last Post: 05-16-2011, 01:44 AM -
Reallyy noob question
By x2robbie2x in forum New To JavaReplies: 3Last Post: 02-18-2010, 04:58 AM -
Noob button question.
By dudejonne in forum Java AppletsReplies: 4Last Post: 10-20-2009, 10:51 PM -
Question - I'm a noob!
By Insaeno in forum New To JavaReplies: 5Last Post: 08-04-2008, 03:20 AM -
Noob question- easy
By mattonitto in forum New To JavaReplies: 7Last Post: 06-13-2008, 12:26 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks