< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/basic/BasicRootPaneUI.java

Print this page

        

*** 177,187 **** } /** * Invoked when the default button property has changed. This reloads * the bindings from the defaults table with name ! * <code>RootPane.defaultButtonWindowKeyBindings</code>. */ void updateDefaultButtonBindings(JRootPane root) { InputMap km = SwingUtilities.getUIInputMap(root, JComponent. WHEN_IN_FOCUSED_WINDOW); while (km != null && !(km instanceof RootPaneInputMap)) { --- 177,187 ---- } /** * Invoked when the default button property has changed. This reloads * the bindings from the defaults table with name ! * {@code RootPane.defaultButtonWindowKeyBindings}. */ void updateDefaultButtonBindings(JRootPane root) { InputMap km = SwingUtilities.getUIInputMap(root, JComponent. WHEN_IN_FOCUSED_WINDOW); while (km != null && !(km instanceof RootPaneInputMap)) {
*** 199,209 **** } } /** * Invoked when a property changes on the root pane. If the event ! * indicates the <code>defaultButton</code> has changed, this will * reinstall the keyboard actions. */ public void propertyChange(PropertyChangeEvent e) { if(e.getPropertyName().equals("defaultButton")) { JRootPane rootpane = (JRootPane)e.getSource(); --- 199,209 ---- } } /** * Invoked when a property changes on the root pane. If the event ! * indicates the {@code defaultButton} has changed, this will * reinstall the keyboard actions. */ public void propertyChange(PropertyChangeEvent e) { if(e.getPropertyName().equals("defaultButton")) { JRootPane rootpane = (JRootPane)e.getSource();
< prev index next >