title: Bring JPanel to front of other objects in java (SWING)
body: <p>I want to make a loading message when an app processes, so I used a <code>JPanel</code> over a <code>JTree</code>. But when the user clicks on the <code>JPanel</code>, the <code>JTree</code> will be selected and the <code>JPanel</code> will go to the back. After hiding the <code>JPanel</code>, it never shows again. I don't know why, but it seems it never go in front of the <code>JTree</code>. </p>
  
  <p>I need a way to bring the <code>JPanel</code> in front of everything. How can I do this?</p>
  
  <p><strong>EDIT:</strong> Also I must mention that I don't want a <code>JDialog</code>. I want to use the <code>JPanel</code> on top of any element to show a loading message until a process finishes.</p>