Code example for JTextComponent

Methods: requestFocusInWindowsetBackground

0
			throw new BindingException(e);
		} 
	} 
	 
	public void markValid() { 
		_textComponent.setBackground(_validColor);
		_textComponent.requestFocusInWindow();
	} 
 
	public void markInvalid() { 
		_textComponent.setBackground(Binding.INVALID_COLOR);
	} 
	 
	public void setEnabled(boolean enabled) {
		_textComponent.setEnabled(enabled);
	} 
} 
Experience pair programming with AI  Get Codota for Java