JDK-4449510 : FocusEvent.getOppositeComponent returns null on X11 AWT
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.3.0,1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux,solaris
  • CPU: x86,sparc
  • Submitted: 2001-04-24
  • Updated: 2001-10-13
  • Resolved: 2001-10-09
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
How to reproduce:

1. Compile and run the attached program.
2. Click on either of the two buttons.  This will bring up an InputMethodWindow
3. Click on the InputMethodWindow.  Then a focus lost event for the main window is printed out, saying that the getOppositeComponent returns null.

Expected result: At 3, return a non-null component that would receive the focus.

naoto.sato@Eng 2001-04-23

Comments
EVALUATION Commit to fix in Merlin (new focus functionality not implemented). eric.hawkes@eng 2001-04-23 This bug was fixed as part of the fix for 4453933. See that BugID for details. david.mendenhall@east 2001-06-03 According to ###@###.### this is still a problem. ###@###.### 2001-09-26 This bug is not reproducible on solaris with merlin beta 3 build 82: focusGained on IMWindowTest[frame0,440,362,400x300,layout=java.awt.GridLayout,title=,resizable,normal] opposite: null focusLost on IMWindowTest[frame0,440,362,400x300,layout=java.awt.GridLayout,title=,resizable,normal] opposite: java.awt.TextField[textfield0,5,29,110x66,text=IMWindow w/o calling setFocusableWindow(false),editable,selection=0-0] focusGained on IMWindow[frame1,580,462,120x100,layout=java.awt.BorderLayout,title=Input Method Window,resizable,normal] opposite: java.awt.Button[button0,6,30,388x132,label=IMWindow w/o calling setFocusableWindow(false)] ###@###.### 2001-10-08
08-10-2001