¡@

Home 

java Programming Glossary: window3

Adding JPanels from other classes to the cardLayout

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

new BorderLayout JPanel jp2 new Window2 JPanel jp3 new Window3 JLabel textLabel new JLabel Window1 jp.setBackground Color.GREEN.. .add new Window2 Center frame.getContentPane .add new Window3 Center frame.setDefaultCloseOperation JFrame.EXIT_ON_CLOSE frame.setSize.. BorderLayout.EAST setLayout cardLayout JPanel jp3 new Window3 add jp3 string public void actionPerformed ActionEvent e if..