¡@

Home 

java Programming Glossary: window1

Adding JPanels from other classes to the cardLayout

http://stackoverflow.com/questions/9322474/adding-jpanels-from-other-classes-to-the-cardlayout

represents the idea of how I got it actually public class Window1 extends JPanel implements ActionListener static CardLayout cardLayout.. static CardLayout cardLayout new CardLayout public Window1 init private void init JPanel jp new JPanel new BorderLayout.. Window2 JPanel jp3 new Window3 JLabel textLabel new JLabel Window1 jp.setBackground Color.GREEN jp.add textLabel BorderLayout.CENTER..