private void initialize()
	{
		Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
		frame = new JFrame();
		frame.setTitle("Chat Server");
		frame.setBounds(100, 100, 440, 300);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().setLayout(null);
		frame.setLocation(dim.width/3-frame.getSize().width/2, dim.height/2-frame.getSize().height/2);
		
		JLabel lblIPAddress;
		try
		{ // Getting IP address
			BufferedReader in = new BufferedReader(new InputStreamReader(new URL("http://checkip.amazonaws.com").openStream()));
			String ip = in.readLine();
                	
			lblIPAddress = new JLabel("Your IP Address: "+ip);
		} catch (IOException e1)
		{ // If error occurs
			lblIPAddress = new JLabel("Your IP Address: Unknown");
		}
		lblIPAddress.setBounds(10, 11, 213, 14);
		
		frame.getContentPane().add(lblIPAddress);

		JLabel lblLocalAddress;
		try
		{ // Getting local IP address
			lblLocalAddress = new JLabel("Your Local Address: "+InetAddress.getLocalHost().getHostAddress());
			lblLocalAddress.setHorizontalAlignment(SwingConstants.RIGHT);
		} catch (IOException e1)
		{ // If error occurs
			lblLocalAddress = new JLabel("Your Local Address: Unknown");
		}
		lblLocalAddress.setBounds(221, 11, 193, 14);
		frame.getContentPane().add(lblLocalAddress);
		
		btnStartServer = new JButton("Start Server");
		btnStartServer.addActionListener(new ActionListener() 
		{
			public void actionPerformed(ActionEvent arg0) 
			{ // Getting instance og Singleton controller class
				ServerController.getInstance().startServer(Integer.parseInt(txtSocket.getText()));
			}
		});
		btnStartServer.setBounds(304, 39, 110, 23);
		frame.getContentPane().add(btnStartServer);
		JLabel lblSocketNo = new JLabel("Socket No.");
		lblSocketNo.setBounds(10, 43, 73, 14);
		frame.getContentPane().add(lblSocketNo);
		txtSocket = new JTextField();
		txtSocket.setText("9999");
		txtSocket.setBounds(79, 40, 41, 20);
		frame.getContentPane().add(txtSocket);
		txtSocket.setColumns(10);
		
		chatList = new List();
		chatList.setBounds(10, 72, 404, 180);
		frame.getContentPane().add(chatList);
		
		btnStopServer = new JButton("Stop Server");
		btnStopServer.addActionListener(new ActionListener() 
		{
			public void actionPerformed(ActionEvent e) 
			{ // Ending session
				ServerController.getInstance().stopServer();
			}
		});
		btnStopServer.setBounds(304, 39, 110, 23);
		frame.getContentPane().add(btnStopServer);
	}