0

I'm creating an application to test my Java skills, and I am using NetBeans because of the GUI builder because I'm not quite used to laying GUI's out by hand yet (the GUI is in Swing). I have a simple login form, that if the login information is correct, disappears and is replaced with different GUI elements. How could I make the second page that replaces the login page with the GUI builder?

Andre Nagel
  • 73
  • 1
  • 6
  • Take a look at [How to use CardLayout](http://docs.oracle.com/javase/tutorial/uiswing/layout/card.html) – MadProgrammer Dec 09 '13 at 06:04
  • 1
    Take a look at [my answer here](http://stackoverflow.com/questions/15908275/how-can-i-add-a-login-screen-to-an-existing-java-swing-program). It's a simple login using a custom `JDialog`. – Paul Samsotha Dec 09 '13 at 06:11

1 Answers1

2

You probably want a CardLayout. However, this might be a dup of Java Swing: How can I implement a login screen before showing a JFrame?

Community
  • 1
  • 1
Hilikus
  • 9,954
  • 14
  • 65
  • 118