8167176: Exported elements referring to inaccessible types in java.desktop
Reviewed-by: prr, serb
This commit is contained in:
parent
abaaf58cf3
commit
bc442826a9
@ -320,28 +320,6 @@ public class JRootPane extends JComponent implements Accessible {
|
||||
* a UI-specific action like pressing the <b>Enter</b> 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 <code>Action</code>
|
||||
* in the <code>JRootPane</code>'s <code>ActionMap</code>. 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 <code>Action</code>
|
||||
* in the <code>JRootPane</code>'s <code>ActionMap</code>. 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.
|
||||
|
@ -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"));
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ public class MetalScrollBarUI extends BasicScrollBarUI
|
||||
/**
|
||||
* The metal bumps.
|
||||
*/
|
||||
protected MetalBumps bumps;
|
||||
private MetalBumps bumps;
|
||||
|
||||
/**
|
||||
* The increase button.
|
||||
|
Loading…
Reference in New Issue
Block a user