public SwitchServerWindow()
	{
		//Window's components.
		GradientPanel gp = new GradientPanel(new Color(173, 173, 173), new Color(78, 78, 78));
		gp.setPreferredSize(new Dimension(width, height));
		gp.setLayout(null);
		ipLabel.setBounds(width / 2 - (83 + 145) / 2, height / 2 - (25 + 5 + 25) / 2, 83, 25);
		iptf.setBounds(ipLabel.getX() + ipLabel.getWidth(), ipLabel.getY() + 1, 145, ipLabel.getHeight() - 3);
		iptf.setBorder(BorderFactory.createLineBorder(new Color(123, 0, 1), 2));
		connectb.setBounds(width / 2 - 100 / 2, ipLabel.getY() + ipLabel.getHeight() + 10, 100, 25);
		sp = new SpinningWheel(width / 2 - 25/2, connectb.getY(), 25, 55);
		sp.setVisible(false);
		
		gp.add(ipLabel);
		gp.add(iptf);
		gp.add(connectb);
		gp.add(sp);
		
		//Window's settings.
		this.setLocation(deviceWidth / 2 - width / 2, DeviceHeight / 2 - height / 2);
		this.setResizable(false);
		this.setContentPane(gp);
		this.setModal(true);
		this.setAlwaysOnTop(true);
		this.pack();
		//Window's Listeners.
		iptf.addActionListener(this);
		iptf.addKeyListener(this);
		connectb.addActionListener(this);
		this.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
		this.addWindowListener(new WindowAdapter() {

            @Override
            public void windowClosing(WindowEvent e) {
                if(connect != null && connect.isAlive()) {
                	connect.interrupt();
                	connect = null;
                }
                AdminClient.client = null;
                SwitchServerWindow.this.dispose();
            }
        });
		this.setVisible(true);
	}