diff --git a/jdk/src/java.desktop/share/classes/javax/swing/JRootPane.java b/jdk/src/java.desktop/share/classes/javax/swing/JRootPane.java
index 80dfb2954b4..3228af034da 100644
--- a/jdk/src/java.desktop/share/classes/javax/swing/JRootPane.java
+++ b/jdk/src/java.desktop/share/classes/javax/swing/JRootPane.java
@@ -320,28 +320,6 @@ public class JRootPane extends JComponent implements Accessible {
* a UI-specific action like pressing the Enter key occurs.
*/
protected JButton defaultButton;
- /**
- * As of Java 2 platform v1.3 this unusable field is no longer used.
- * To override the default button you should replace the Action
- * in the JRootPane
's ActionMap
. Please refer to
- * the key bindings specification for further details.
- *
- * @deprecated As of Java 2 platform v1.3.
- * @see #defaultButton
- */
- @Deprecated
- protected DefaultAction defaultPressAction;
- /**
- * As of Java 2 platform v1.3 this unusable field is no longer used.
- * To override the default button you should replace the Action
- * in the JRootPane
's ActionMap
. Please refer to
- * the key bindings specification for further details.
- *
- * @deprecated As of Java 2 platform v1.3.
- * @see #defaultButton
- */
- @Deprecated
- protected DefaultAction defaultReleaseAction;
/**
* Whether or not true double buffering should be used. This is typically
@@ -829,35 +807,6 @@ public class JRootPane extends JComponent implements Accessible {
}
}
- @SuppressWarnings("serial")
- static class DefaultAction extends AbstractAction {
- JButton owner;
- JRootPane root;
- boolean press;
- DefaultAction(JRootPane root, boolean press) {
- this.root = root;
- this.press = press;
- }
- public void setOwner(JButton owner) {
- this.owner = owner;
- }
- public void actionPerformed(ActionEvent e) {
- if (owner != null && SwingUtilities.getRootPane(owner) == root) {
- ButtonModel model = owner.getModel();
- if (press) {
- model.setArmed(true);
- model.setPressed(true);
- } else {
- model.setPressed(false);
- }
- }
- }
- public boolean isEnabled() {
- return owner.getModel().isEnabled();
- }
- }
-
-
/**
* Overridden to enforce the position of the glass component as
* the zero child.
diff --git a/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalBorders.java b/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalBorders.java
index edbd02bbbad..5461d7485b1 100644
--- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalBorders.java
+++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalBorders.java
@@ -739,7 +739,7 @@ public class MetalBorders {
/**
* The instance of {@code MetalBumps}.
*/
- protected MetalBumps bumps = new MetalBumps( 10, 10,
+ private MetalBumps bumps = new MetalBumps( 10, 10,
MetalLookAndFeel.getControlHighlight(),
MetalLookAndFeel.getControlDarkShadow(),
UIManager.getColor("ToolBar.background"));
diff --git a/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java b/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java
index d1b3c1e2166..91132582193 100644
--- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java
+++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java
@@ -923,7 +923,7 @@ public class MetalFileChooserUI extends BasicFileChooserUI {
* @param fc a {@code JFileChooser}
* @return a new instance of {@code DirectoryComboBoxRenderer}
*/
- protected DirectoryComboBoxRenderer createDirectoryComboBoxRenderer(JFileChooser fc) {
+ private DefaultListCellRenderer createDirectoryComboBoxRenderer(JFileChooser fc) {
return new DirectoryComboBoxRenderer();
}
diff --git a/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalScrollBarUI.java b/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalScrollBarUI.java
index cb4fbd72590..bb066e8aade 100644
--- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalScrollBarUI.java
+++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalScrollBarUI.java
@@ -62,7 +62,7 @@ public class MetalScrollBarUI extends BasicScrollBarUI
/**
* The metal bumps.
*/
- protected MetalBumps bumps;
+ private MetalBumps bumps;
/**
* The increase button.