Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package de.ipk_gatersleben.bit.bi.edal.publication.listener;
 
 
 
public class TextAreaValueChangedFocusListener implements FocusListener {
			JTextComponent titleAreaString defaultString) {
		this. = label;
		this. = titleArea;
		this. = defaultString;
	}
	public void focusGained(FocusEvent event) {
				Utils.cleanUpString(this.))) {
			this..setText(new String());
		}
			PublicationMainPanel.blockForTextField();
		}
	}
	public void focusLost(FocusEvent event) {
		if (Utils.checkIfStringIsEmpty(this..getText())) {
		}
			try {
				Object[] options = { "Yes""No" };
				int result = JOptionPane
								PublicationModul.getFrame(),
								"Would you like to update the version? If not please change the title !",
								"Publication already exist !",
								.nulloptions,
								options[0]);
				if (result == .) {
					PublicationMainPanel.releaseAllBlockedFields();
				}
				if (result == .) {
					PublicationMainPanel.releaseAllBlockedFields();
				}
				PublicationMainPanel.releaseAllBlockedFields();
			}
		}
	}
New to GrepCode? Check out our FAQ X