@@ -0,0 +1,1862 @@
+package com.client.window;%0A%0Aimport com.client.listener.LoginListener;%0A%0Aimport javax.swing.*;%0A%0Aimport static java.awt.Component.RIGHT_ALIGNMENT;%0A%0A/**%0A * Created by form on 2017-07-20.%0A */%0Apublic class LoginWindow %7B%0A%0A    public void open()%7B%0A        JFrame frame = WindowController.getFrame();%0A        frame.setTitle(%22Login%22);%0A        // Setting the width and height of frame%0A        frame.setSize(350, 200);%0A        frame.setLocationRelativeTo(null);%0A        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A%0A        JPanel panel = WindowController.getPanel();%0A        panel.setName(%22panel%22);%0A        // %E6%B7%BB%E5%8A%A0%E9%9D%A2%E6%9D%BF%0A        frame.add(panel);%0A        // %E8%B0%83%E7%94%A8%E7%94%A8%E6%88%B7%E5%AE%9A%E4%B9%89%E7%9A%84%E6%96%B9%E6%B3%95%E5%B9%B6%E6%B7%BB%E5%8A%A0%E7%BB%84%E4%BB%B6%E5%88%B0%E9%9D%A2%E6%9D%BF%0A        placeComponents(panel);%0A%0A        // %E8%AE%BE%E7%BD%AE%E7%95%8C%E9%9D%A2%E5%8F%AF%E8%A7%81%0A        frame.setVisible(true);%0A    %7D%0A%0A    private static void placeComponents(JPanel panel) %7B%0A%0A        /*%0A         * %E8%AE%BE%E7%BD%AE%E5%B8%83%E5%B1%80%E4%B8%BA null%0A         */%0A        panel.setLayout(null);%0A%0A        JLabel ipLabel = new JLabel(%22ip:%22);%0A        ipLabel.setBounds(10,20,80,25);%0A        ipLabel.setAlignmentX(RIGHT_ALIGNMENT);%0A        panel.add(ipLabel);%0A%0A        JTextField ipText = new JTextField(20);%0A        ipText.setBounds(100,20,165,25);%0A        ipText.setName(%22ip%22);%0A        ipText.setText(%22127.0.0.1%22);%0A        panel.add(ipText);%0A%0A        JLabel portLabel = new JLabel(%22port:%22);%0A        portLabel.setBounds(10,50,80,25);%0A        portLabel.setAlignmentX(RIGHT_ALIGNMENT);%0A        panel.add(portLabel);%0A%0A        JTextField portText = new JTextField(20);%0A        portText.setBounds(100,50,165,25);%0A        portText.setName(%22port%22);%0A        portText.setText(%2280%22);%0A        panel.add(portText);%0A%0A        // %E5%88%9B%E5%BB%BA%E7%99%BB%E5%BD%95%E6%8C%89%E9%92%AE%0A        JButton loginButton = new JButton(%22%E7%A1%AE%E5%AE%9A%22);%0A        loginButton.setBounds(10, 80, 80, 25);%0A        loginButton.addActionListener(new LoginListener());%0A        loginButton.setAlignmentX(RIGHT_ALIGNMENT);%0A        panel.add(loginButton);%0A    %7D%0A%7D%0A

Create LoginWindow.java