@Override
	public void askSettings(JFrame parent)
	{
		String bar = JOptionPane.showInputDialog(null, AutoAppro.messages.getString("bar2auto_bar_title"),
				AutoAppro.messages.getString("bar2auto_bar_content"), JOptionPane.QUESTION_MESSAGE);
		if (bar == null)
			return;
		this.bar = bar;
		MyPreferences.set(this.getName() + ".bar", bar);
		String login = JOptionPane.showInputDialog(null, AutoAppro.messages.getString("bar2auto_login_title"),
				AutoAppro.messages.getString("bar2auto_login_content"), JOptionPane.QUESTION_MESSAGE);
		if (login == null)
			return;
		this.login = login;
		MyPreferences.set(this.getName() + ".login", login);
		String password = getPassword();
		if (password == null)
			return;
		this.password = password;
		ByteArrayOutputStream encoded = new ByteArrayOutputStream();
		try
		{
			OutputStream out = new GZIPOutputStream(encoded);
			out.write((password + "\n\n").getBytes());
			out.flush();
			out.close();
			MyPreferences.set(this.getName() + ".password", encoded.toByteArray());
		} catch (IOException e)
		{
			e.printStackTrace();
		}
	}