title: JTextField needs to get blank and also make case insensitive search
body: <p>I have two problems while searching for a text in a JTable:</p>
  
  <p>1) For example, in JTextField I must initially have a 'Search Text' in transparent manner and if I click on it, the textfield must become blank and we can enter text there. How to achieve this in Java Swing?</p>
  
  <p>2) My search coding is,</p>
  
  <pre><code>private void search8()
  {
  String target8 = sear8.getText();
  for(int row = 0; row &lt; table8.getRowCount(); row++)
  for(int col = 0; col &lt; table8.getColumnCount(); col++)
  {
  String next8 = (String)table8.getValueAt(row, col);
  if(next8.equals(target8))
  {
  showSearchResults(row, col);
  return;
  }
  }
  </code></pre>
  
  <p>But it is case-sensitive. I want it to be case-insensitive search. Where should I make changes in this? Also, for eg, if there is a text 'abc' and now I need to type the entire word 'abc'. Is there any way such that, if I type 'a' or 'bc' it would take me to that cell?</p>
  
  <p>Kindly guide me. Thanks in advance.</p>