public void actionPerformed(ActionEvent ae) {
		String act = ae.getActionCommand();
		this.repaint();
		if (act.compareTo("Start") == 0)
		{
			b2.setBackground(Color.red);
			b1.setVisible(false);
			b2.setVisible(true);
			b1.setDisplayedMnemonicIndex(0);
			t = new webserver();
			if (t.isRuning()) {
				t.setRuning(false);
			}	
			t.setRuning(true);
			t.setDaemon(true);
			t.start();
			System.out.println("Starting up the server");
			this.repaint();
		}
		if (act.compareTo("Stop") == 0)
		{
			b1.setVisible(true);
			b2.setVisible(false);
			b2.setBackground(Color.LIGHT_GRAY);
			b1.setBackground(Color.LIGHT_GRAY);
			t.setRuning(false);
		//	t.destroy();
//			t.interrupt();
			try {
				Socket s = new Socket("localhost",80);
				s.close();
			} catch (UnknownHostException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} 
				catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} 
			System.out.println("Server stopped");
			this.repaint();
		}
		if (act.compareTo("Setting") == 0)
		{
			this.repaint();	
		}
		if (act.compareTo("Info") == 0 )
		{
			System.out.println("Reached the points");
			JFrame j = new JFrame(); 
			j.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
			j.setContentPane(new info());
			j.setTitle("WebServer");
			j.setSize(200,200);
			j.setVisible(true);
			this.repaint();
		}
		this.repaint();
	}