String password = showPasswordDialog(""); if (!password.equals(Encryption.decrypt(pass))) { Debug.err("Wrong password!"); System.exit(0); }
String password = showPasswordDialog(""); if (!password.equals(Encryption.decrypt(pass))) { Debug.errDlg("Falsches Passwort!"); Debug.err("Wrong password!"); System.exit(0); }
	private void createGUI() {		setTitle(JFritz.PROGRAM_NAME);		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);		setDefaultLookAndFeel();		// Setting size and position		int x = Integer.parseInt(JFritz.getProperty("position.left", "10"));		int y = Integer.parseInt(JFritz.getProperty("position.top", "10"));		int w = Integer.parseInt(JFritz.getProperty("position.width", "640"));		int h = Integer.parseInt(JFritz.getProperty("position.height", "400"));		setLocation(x, y);		setSize(w, h);		callerListPanel = new CallerListPanel(jfritz);		phoneBookPanel = new PhoneBookPanel(jfritz);		quickDialPanel = new QuickDialPanel(jfritz);		tabber = new JTabbedPane(JTabbedPane.BOTTOM);		tabber.addTab(JFritz.getMessage("callerlist"), callerListPanel);		tabber.addTab(JFritz.getMessage("phonebook"), phoneBookPanel);		tabber.addTab(JFritz.getMessage("quickdials"), quickDialPanel);		// Adding gui components		setJMenuBar(createMenu());		getContentPane().setLayout(new BorderLayout());		getContentPane().add(createMainToolBar(), BorderLayout.NORTH);		getContentPane().add(tabber, BorderLayout.CENTER);		getContentPane().add(createStatusBar(), BorderLayout.SOUTH);		jfritz.getCallerlist().fireTableStructureChanged();		String ask = JFritz.getProperty("jfritz.password", "");		String pass = JFritz.getProperty("box.password", "");		if (!Encryption.decrypt(ask).equals(				JFritz.PROGRAM_SECRET + Encryption.decrypt(pass))) {			String password = showPasswordDialog("");			if (!password.equals(Encryption.decrypt(pass))) {				Debug.err("Wrong password!");				System.exit(0);			}			/*			 * if (!password.equals("")) { String enc =			 * Encryption.encrypt(JFritz.PROGRAM_SECRET + pass);			 * JFritz.setProperty("jfritz.password", enc); }			 */		}	}