0

I am creating a combo box with options "Checking","Savings","Credit Card". When the user selects "Checking" option, it should directly go to "CheckingJPanel".

I am using card layout.

Garfield
  • 143
  • 11
  • Please show us the code you have written. If you haven't written any yet: https://docs.oracle.com/javase/tutorial/uiswing/layout/card.html – markspace Oct 07 '17 at 20:50

1 Answers1

1

Use a CardLayout. It allows you to swap panels in the same place on the frame.

Read the section from the Swing tutorial on How to Use a CardLayout for a working example that does exactly what you want.

camickr
  • 321,443
  • 19
  • 166
  • 288