title: Focus Gained and Focus Lost Java
body: <p>I have some text field on my form. And I like focusGained and focusLost event. Doing this with 2 or 3 text field is easy. But, after 18 text field, well, it's kinda confusing.
  Is there any way to shorten the focusGained and focusLost event?
  Example:</p>
  
  <pre><code>txtSomeTextFocusGained(java.awt.event FocusEvent evt){
      if(txtSomeText.getText().equals("Text here!"){
          txtSomeText.setText("");
      }
  }
  
  txtSomeTextFocusLost(java.awt.event FocusEvent evt){
      if(txtSomeText.getText().equals(""){
          txtSomeText.setText("Text here!");
      }
  }
  </code></pre>
  
  <p>That's one text field, I've problem handling with about 18 text field. Any way to simplify that?
  Thanks.</p>