title: How to set Text like Placeholder in JTextfield in swing
body: <p>I want to put some texts in text-Field when the form is load which instruct to user and when user click on that text-filed the texts remove automatically.</p>
  
  <pre><code> txtEmailId = new JTextField();
   txtEmailId.setText("Email ID");
  </code></pre>
  
  <p>i have wrote above code but it display the text and keep as it is when user click on that text button i want to remove it.</p>
  
  <p>is there any way to do this task?</p>