Results 1 to 2 of 2
  1. #1
    fr33d4n is offline Member
    Join Date
    Aug 2011
    Rep Power

    Default Noob question: How to make smooth window changes?


    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.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power


    Sounds like a job for CardLayout.
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

Similar Threads

  1. Probably Really Noob Question
    By bpx95 in forum New To Java
    Replies: 2
    Last Post: 05-16-2011, 01:44 AM
  2. Reallyy noob question
    By x2robbie2x in forum New To Java
    Replies: 3
    Last Post: 02-18-2010, 04:58 AM
  3. Noob button question.
    By dudejonne in forum Java Applets
    Replies: 4
    Last Post: 10-20-2009, 10:51 PM
  4. Question - I'm a noob!
    By Insaeno in forum New To Java
    Replies: 5
    Last Post: 08-04-2008, 03:20 AM
  5. Noob question- easy
    By mattonitto in forum New To Java
    Replies: 7
    Last Post: 06-13-2008, 12:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts