package com.github.noxan.aves.demo.chat;

import javax.swing.JFrame;
import javax.swing.UIManager;

public class ChatClientGUI {
    private JFrame frame;

    public ChatClientGUI(ChatClient client) {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch(Exception e) {
        }

        frame = new JFrame();
        frame.setTitle("aves - chatclient");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        frame.setSize(320, 680);
        frame.setLocationByPlatform(true);
        frame.setVisible(true);
    }
}

@@ -50,22 +50,108 @@
 java
-x.swing.JFrame
+.awt.BorderLayout;%0Aimport java.awt.CardLayout;%0A%0Aimport javax.swing.JFrame;%0Aimport javax.swing.JPanel
 ;%0Aim
@@ -233,16 +233,42 @@
 e frame;
+%0A    private JPanel cards;
 %0A%0A    pu
@@ -582,16 +582,111 @@
 LOSE);%0A%0A
+        cards = new JPanel(new CardLayout());%0A%0A        frame.add(cards, BorderLayout.CENTER);%0A%0A
         

add cards jpanel with cardlayout for gui cards