@@ -0,0 +1,812 @@
+package com.chatroom.io.client;%0A%0Aimport com.chatroom.swing.window.WindowController;%0Aimport io.netty.channel.ChannelHandlerContext;%0Aimport io.netty.channel.SimpleChannelInboundHandler;%0A%0Aimport javax.swing.*;%0Aimport java.awt.*;%0A%0A/**%0A * @Author JamH%0A * Created by form on 2017-07-20.%0A */%0Apublic class ClientChatHandler extends SimpleChannelInboundHandler%3CString%3E %7B%0A%0A    @Override%0A    protected void channelRead0(ChannelHandlerContext ctx, String str) throws Exception%7B%0A        JPanel panel = WindowController.getPanel();%0A        Component%5B%5D components = panel.getComponents();%0A        for(Component component : components)%7B%0A            if(%22area%22.equals(component.getName()))%7B%0A                JTextArea area = (JTextArea)component;%0A                area.setText(area.getText() + str);%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Create ChatHandler.java