@Override
	public void actionPerformed(ActionEvent e) {
		Object click = e.getSource();

		if (click == GuiMainWindow.playersOnline) {
			new PlayersOnline();
		} else if (click == GuiMainWindow.topPlayers) {
			new TopPlayers();
		} else if (click == GuiMainWindow.exit) {
			System.exit(0);
		} else if (click == GuiMainWindow.serverBox) {
			setCheckBoxServer();
			selected = true;
			repaint();
		}
	}