// Making label invisible for mouse events
return false;
}
};
overlay.setForeground ( Color.GRAY );
textField.addFocusListener ( new ConditionalVisibilityListener ( overlay, false, null )
{
@Override
public boolean isVisible ()
{
return super.isVisible () && textField.getText ().equals ( "" );