JDK-4721224 : JApplet shouldn't be a focus cycle root
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: sparc
  • Submitted: 2002-07-26
  • Updated: 2003-09-26
  • Resolved: 2003-09-26
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.
Other
5.0 tigerFixed
Related Reports
Relates :  
Relates :  
Description

Name: apR10133			Date: 07/26/2002


Due to changes for bug 4707289 JApplet is a focus cycle root now.
JApplet should have a FocusTraverlasPolicy. But it shouldn't be a
focus cycle root (otherwise in AppletViewer and Plugin containers
applet doesn't receive focus by default but focus can be transfered
to first component by the TAB). We can't set the FTP for not focus
cycle root now. So, we should make the JApplet a not focus cycle
root when the RFE 4719336 will be done.

======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b22
24-08-2004

EVALUATION Name: apR10133 Date: 01/14/2003 This bug could be fixed after the RFE 4719336 will be done. ###@###.### ====================================================================== Name: apR10133 Date: 09/01/2003 The RFE 4719336 (Ability for non focusCycleRoots to provide focusTraversalPolicy) is already resolved. Now container could have its FTP if it is a FTP provider (set by the setFocusTraversalPolicyProvider method). The JApplet should be FTP provider instead of FCR. ###@###.### ======================================================================
24-08-2004

WORK AROUND Name: apR10133 Date: 07/26/2002 ======================================================================
24-08-2004

SUGGESTED FIX Name: apR10133 Date: 10/20/2003 ------- JApplet.java ------- *** /tmp/sccs.RQaOrG Mon Sep 1 20:15:14 2003 --- JApplet.java Mon Sep 1 19:54:42 2003 *************** *** 122,132 **** setRootPane(createRootPane()); setRootPaneCheckingEnabled(true); ! // This code should be changed after the RFE 4719336 is resolved ! // to not make the applet a FocusCycleRoot, but set its ! // FocusTraversalPolicy only. ! setFocusCycleRoot(true); ! sun.awt.SunToolkit.checkAndSetPolicy(this, true); enableEvents(AWTEvent.KEY_EVENT_MASK); } --- 122,131 ---- setRootPane(createRootPane()); setRootPaneCheckingEnabled(true); ! setFocusTraversalPolicyProvider(true); ! setFocusTraversalPolicy(KeyboardFocusManager. ! getCurrentKeyboardFocusManager(). ! getDefaultFocusTraversalPolicy()); enableEvents(AWTEvent.KEY_EVENT_MASK); } ======================================================================
24-08-2004