public void actionPerformed(ActionEvent e) 
	{
		if(e.getSource() == btnSettings)
		{
			final SettingsPanel p = new SettingsPanel();

			final String[] options = {Lang.getLine("accept_option"), Lang.getLine("cancel_option")};
			final JOptionPane pane = new JOptionPane(p, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION, null,
			options, options[1]);
			final JDialog dialog = pane.createDialog("Ajustes del servidor");
			dialog.setLocationRelativeTo(Window.getInstance());
			dialog.setResizable(false);
			dialog.setSize(500, 300);
			dialog.setVisible(true);

			if (pane.getValue() == options[0])
			{
				Properties.setLocale(Lang.getAvailableLocales().get(p.getComboBox_language().getSelectedIndex()));
				Lang.setLang(Lang.getAvailableLocales().get(p.getComboBox_language().getSelectedIndex()));

				Properties.setLookAndFeelClass(p.getLookAndFeel());
				
				if(Properties.getLookAndFeel().substring(0, 3).equals("org"))
				{
					SubstanceLookAndFeel.setSkin(Properties.getLookAndFeel());
				} else {
					try {
						UIManager.setLookAndFeel(Properties.getLookAndFeel());
					} catch (ClassNotFoundException
							| InstantiationException
							| IllegalAccessException
							| UnsupportedLookAndFeelException e1) {
						e1.printStackTrace();
					}	
				}
				SwingUtilities.updateComponentTreeUI(Window.getInstance());
			}
			dialog.dispose();
		} else if(e.getSource() == btnAllOff)
		{
			Properties.allOff();
		}
		
	}