1 package org.catacomb.druid.swing; 2 3 import java.awt.CardLayout; 4 5 6 public class DCardPanel extends DPanel { 7 private static final long serialVersionUID = 1L; 8 9 10 CardLayout cardLayout; 11 12 public DCardPanel() { 13 super(); 14 cardLayout = new CardLayout(); 15 setLayout(cardLayout); 16 } 17 18 19 public void nextCard() { 20 cardLayout.next(this); 21 } 22 23 public void showCard(String s) { 24 cardLayout.show(this, s); 25 } 26 27 28 29 }