public void componentMoved(ComponentEvent e) { notifyClientWindowChange((Window)e.getComponent()); } public void componentShown(ComponentEvent e) { notifyClientWindowChange((Window)e.getComponent()); } public void componentHidden(ComponentEvent e) { notifyClientWindowChange((Window)e.getComponent()); } public void windowOpened(WindowEvent e) {} public void windowClosing(WindowEvent e) {} public void windowClosed(WindowEvent e) {} public void windowIconified(WindowEvent e) { notifyClientWindowChange(e.getWindow()); } public void windowDeiconified(WindowEvent e) { notifyClientWindowChange(e.getWindow()); } public void windowActivated(WindowEvent e) {} public void windowDeactivated(WindowEvent e) {} /** * Initializes the input method selection key definition in preference trees */ private void initializeInputMethodSelectionKey() { AccessController.doPrivileged(new PrivilegedAction() { public Object run() { // Look in user's tree Preferences root = Preferences.userRoot(); inputMethodSelectionKey = getInputMethodSelectionKeyStroke(root); if (inputMethodSelectionKey == null) { // Look in system's tree root = Preferences.systemRoot(); inputMethodSelectionKey = getInputMethodSelectionKeyStroke(root); } return null; } }); } private AWTKeyStroke getInputMethodSelectionKeyStroke(Preferences root) { try { if (root.nodeExists(inputMethodSelectionKeyPath)) { Preferences node = root.node(inputMethodSelectionKeyPath); int keyCode = node.getInt(inputMethodSelectionKeyCodeName, KeyEvent.VK_UNDEFINED); if (keyCode != KeyEvent.VK_UNDEFINED) { int modifiers = node.getInt(inputMethodSelectionKeyModifiersName, 0); return AWTKeyStroke.getAWTKeyStroke(keyCode, modifiers); } } } catch (BackingStoreException bse) { } return null; }}Lines 1001–1063 of 1063. Previous lines
public void componentMoved(ComponentEvent e) { notifyClientWindowChange((Window)e.getComponent()); } public void componentShown(ComponentEvent e) { notifyClientWindowChange((Window)e.getComponent()); } public void componentHidden(ComponentEvent e) { notifyClientWindowChange((Window)e.getComponent()); } public void windowOpened(WindowEvent e) {} public void windowClosing(WindowEvent e) {} public void windowClosed(WindowEvent e) {} public void windowIconified(WindowEvent e) { notifyClientWindowChange(e.getWindow()); } public void windowDeiconified(WindowEvent e) { notifyClientWindowChange(e.getWindow()); } public void windowActivated(WindowEvent e) {} public void windowDeactivated(WindowEvent e) {} /** * Initializes the input method selection key definition in preference trees */ private void initializeInputMethodSelectionKey() { AccessController.doPrivileged(new PrivilegedAction() { public Object run() { // Look in user's tree Preferences root = Preferences.userRoot(); inputMethodSelectionKey = getInputMethodSelectionKeyStroke(root); if (inputMethodSelectionKey == null) { // Look in system's tree root = Preferences.systemRoot(); inputMethodSelectionKey = getInputMethodSelectionKeyStroke(root); } return null; } }); } private AWTKeyStroke getInputMethodSelectionKeyStroke(Preferences root) { try { if (root.nodeExists(inputMethodSelectionKeyPath)) { Preferences node = root.node(inputMethodSelectionKeyPath); int keyCode = node.getInt(inputMethodSelectionKeyCodeName, KeyEvent.VK_UNDEFINED); if (keyCode != KeyEvent.VK_UNDEFINED) { int modifiers = node.getInt(inputMethodSelectionKeyModifiersName, 0); return AWTKeyStroke.getAWTKeyStroke(keyCode, modifiers); } } } catch (BackingStoreException bse) { } return null; } }