title: AWT Canvas cannot gain focus in the presence of another focusable component
body: <p>I have a simple GUI with a JTextField and an AWT Canvas (to prevent the counter-question as to why I'm using an AWT Canvas: I need to have a window handle).</p>
  
  <p>The Canvas is to process input events, that means it must be focusable. I assure this by using <code>setFocusable(true)</code> in its constructor, later checks using <code>isFocusable()</code> confirm that it is indeed focusable.</p>
  
  <p>Now, the JTextField gains the focus by default when the GUI opens. That's fine by me so far. However, there is no way to get the focus <em>away</em> from that JTextField.</p>
  
  <p>The article <a href="http://download.oracle.com/javase/6/docs/api/java/awt/doc-files/FocusSpec.html#EventDelivery" rel="nofollow">"The AWT Focus Subsystem"</a> clearly states that if a focusable component is being clicked on, it will gain the focus. This does not happen, in fact, I receive zero focus change events whatsoever, only if the window gets deactivated and activated again, but then the focus is right back to the JTextField.</p>
  
  <p>Explicit invocations of <code>requestFocus()</code> and <code>requestFocusInWindow()</code> do not help either, the latter always returns <code>false</code>.</p>
  
  <p>I have gotten the same results with any focusable component if I replace the JTextField. If the Canvas is the only focusable container, everything works fine because it will always have the focus.</p>
  
  <p>Am I missing something here? Is there any way I can make my Canvas gain focus in the presence of another focusable component, preferably without making that one unfocusable?</p>