resetUIState();
	public void caretUpdate(CaretEvent e) {		Object c = e.getSource();		//Log.log(Log.TRACE, MODULE, "caretUpdate: " + e + " (" + c + ")");				if (c == username) {			currentGallery.setUsername(username.getText());		} else if ( c == password ) {			currentGallery.setPassword(password.getText());		} else {			Log.log(Log.ERROR, MODULE, "Unhandled caret update " + c );		}	}