Class JCardPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JCardPanel extends JPanel
JPanel using CardLayout and keeping track of currently selected card Also removes need to refer to cards by name
Since:
15.4
See Also:
  • Constructor Details

    • JCardPanel

      public JCardPanel()
  • Method Details

    • addImpl

      protected void addImpl(Component comp, Object constraints, int index)
      Overrides:
      addImpl in class Container
    • remove

      public void remove(Component comp)
      Overrides:
      remove in class Container
    • getSelectedCard

      public JComponent getSelectedCard()
    • setSelectedCard

      public void setSelectedCard(JComponent card)
      Set card to show. Fires "selectedCard" property
      Parameters:
      card -