title: Grab focus to a JPanel in a JLayeredPane
body: <p>I have a <code>JLayeredPane</code> with 2 layers</p>
  
  <p>the first layer is a <code>JPanel</code> Wrapping an <code>Image</code>.
  the second layer is another object which extends <code>JPanel</code> called ResizableRectangle and implements <code>KeyListener</code>.</p>
  
  <p>I've overrode the <code>KeyPressed</code> method but it doesn't receive the <code>keyPressed</code> event and the method doesn't get invoked.</p>
  
  <p>I've set the <code>setFocusEnable(true)</code> and  used <code>grabFocus()</code>, <code>requestFocus()</code> and <code>requestFocusInWindows()</code> but all of them return false.</p>
  
  <p>I figured out when I press tab after the the JFrame loads , the <code>Focus</code> goes to the panel that I want , and the listener gets the events.</p>
  
  <p>I've added a <code>KeyListener</code> to the <code>JLayeredPane</code> and it works fine but the problem is that i want to add listener to the panel not the layeredPane.</p>