src/share/classes/java/awt/KeyboardFocusManager.java

Print this page

        

*** 54,64 **** import java.util.WeakHashMap; import sun.util.logging.PlatformLogger; import sun.awt.AppContext; - import sun.awt.HeadlessToolkit; import sun.awt.SunToolkit; import sun.awt.CausedFocusEvent; import sun.awt.KeyboardFocusManagerPeerProvider; import sun.awt.AWTAccessor; --- 54,63 ----
*** 441,451 **** } private void initPeer() { Toolkit tk = Toolkit.getDefaultToolkit(); KeyboardFocusManagerPeerProvider peerProvider = (KeyboardFocusManagerPeerProvider)tk; ! peer = peerProvider.createKeyboardFocusManagerPeer(this); } /** * Returns the focus owner, if the focus owner is in the same context as * the calling thread. The focus owner is defined as the Component in an --- 440,450 ---- } private void initPeer() { Toolkit tk = Toolkit.getDefaultToolkit(); KeyboardFocusManagerPeerProvider peerProvider = (KeyboardFocusManagerPeerProvider)tk; ! peer = peerProvider.getKeyboardFocusManagerPeer(); } /** * Returns the focus owner, if the focus owner is in the same context as * the calling thread. The focus owner is defined as the Component in an