JDK-2184498 : Clicking on parent JFrame's client area does not switch focus from JWindow to JFrame on Windows
  • Type: Backport
  • Backport of: JDK-6886678
  • Component: client-libs
  • Sub-Component: java.awt
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2009-11-03
  • Updated: 2011-01-19
  • Resolved: 2010-10-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u18Fixed 7 b114Fixed
Comments
EVALUATION I have to reopen the CR as the problem still exist though it has narrower scope. Namely, when you click in an empty spot of the frame's client area (not on its child component) it doesn't gain focus. This works with XAWT and is fixed for JDK6 WToolkit. Here's the testcase: =========================================================== import java.awt.*; public class FocusFrameByClick { public static void main(String[] args) { Frame f = new Frame("frame"); Button fb = new Button("frame_button"); f.setLayout(new FlowLayout()); f.add(fb); f.setSize(100, 100); Window w = new Window(f); Button wb = new Button("window_button"); w.setLocation(200, 0); w.add(wb); w.pack(); f.setVisible(true); w.setVisible(true); } } =========================================================== 1. Compile & run it. 2. Click the window_button. 3. Click in the frame but not on the frame_button. The frame doesn't become the focused window.
26-08-2010

EVALUATION Close as not reproducible with jdk7.
16-08-2010

EVALUATION The submitter agreed that the problem does not exist with JDK 7. Should be verified again in order to close the SubCR.
27-04-2010