I have one .java file in which I have a form for user registration and I have another page on another .java file that shoul开发者_JAVA技巧d appear (and previous should disappear) when user clicks on next .... could anybody provide me any guidance.
Thanks a lot efforts appreciated
Use a CardLayout
My guess! you haven't tried setVisible()
method.
Remove old content from container and add the new content. Then call revalidate()
and repaint()
.
very simple by implements Splash Screen logics, you create a JDialog
(one .java
) and only if everything passed from one .java
then shows something from another .java
精彩评论