Hello all,

Back with another java problem but this time its not as complex as my previous ones (hopefully). I'm just wondering if i can run one Jframe to another just like in vb such as going from one form to another by hiding / destroying the previous one and showing the next one.

The only solution i could think of at the moment is to have one class containing the main method which will control everythin such as the following algorithm:

Main Class

-Run frame one
-dispose frame one
-run frame two
- dispose frame two

End of main

will this idea work?

Thanks in advance