@@ -0,0 +1,1061 @@
+package com.client.listener;%0A%0Aimport com.client.ClientMain;%0Aimport com.client.window.RoomWindow;%0Aimport com.client.window.WindowController;%0A%0Aimport javax.swing.*;%0Aimport java.awt.*;%0Aimport java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;%0A%0A/**%0A * Created by form on 2017-07-20.%0A */%0Apublic class LoginListener implements ActionListener %7B%0A%0A    private String ip;%0A    private String port;%0A%0A    public void actionPerformed(ActionEvent event)%7B%0A        ClientMain client = ClientMain.getInstance();%0A        JPanel panel = WindowController.getPanel();%0A        for(Component component : panel.getComponents())%7B%0A            String name = component.getName();%0A            if(%22ip%22.equals(name))%7B%0A                JTextField text = (JTextField)component;%0A                this.ip = text.getText();%0A            %7Delse if(%22port%22.equals(name))%7B%0A                JTextField text = (JTextField)component;%0A                this.port = text.getText();%0A            %7D%0A        %7D%0A%0A        client.config(ip, Integer.parseInt(port));%0A        new RoomWindow().open();%0A    %7D%0A%7D%0A

Create LoginListener.java