mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-19 09:57:49 +00:00
8033908: Fix serial lint warnings in com.sun.java.swing.plaf
Reviewed-by: serb, alanb
This commit is contained in:
parent
810d636e87
commit
56364286b0
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -38,6 +38,7 @@ import javax.swing.plaf.*;
|
||||
*
|
||||
* @author Scott Violet
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
class GTKColorChooserPanel extends AbstractColorChooserPanel implements
|
||||
ChangeListener {
|
||||
private static final float PI_3 = (float)(Math.PI / 3);
|
||||
@ -535,6 +536,7 @@ class GTKColorChooserPanel extends AbstractColorChooserPanel implements
|
||||
/**
|
||||
* Class responsible for rendering a color wheel and color triangle.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class ColorTriangle extends JPanel {
|
||||
/**
|
||||
* Cached image of the wheel.
|
||||
@ -1229,6 +1231,7 @@ class GTKColorChooserPanel extends AbstractColorChooserPanel implements
|
||||
/**
|
||||
* Action class used for colors.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private static class ColorAction extends AbstractAction {
|
||||
private int type;
|
||||
|
||||
@ -1294,7 +1297,7 @@ class GTKColorChooserPanel extends AbstractColorChooserPanel implements
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class OpaqueLabel extends JLabel {
|
||||
public boolean isOpaque() {
|
||||
return true;
|
||||
|
||||
@ -549,6 +549,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
||||
|
||||
fc.add(interior, BorderLayout.CENTER);
|
||||
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JPanel comboBoxPanel = new JPanel(new FlowLayout(FlowLayout.CENTER,
|
||||
0, 0) {
|
||||
public void layoutContainer(Container target) {
|
||||
@ -660,26 +661,30 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
||||
if (currentDirectory != null) {
|
||||
curDirName = currentDirectory.getPath();
|
||||
}
|
||||
pathField = new JLabel(curDirName) {
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JLabel tmp = new JLabel(curDirName) {
|
||||
public Dimension getMaximumSize() {
|
||||
Dimension d = super.getMaximumSize();
|
||||
d.height = getPreferredSize().height;
|
||||
return d;
|
||||
}
|
||||
};
|
||||
pathField = tmp;
|
||||
pathField.setName("GTKFileChooser.pathField");
|
||||
align(pathField);
|
||||
pathFieldPanel.add(pathField);
|
||||
interior.add(pathFieldPanel);
|
||||
|
||||
// add the fileName field
|
||||
fileNameTextField = new JTextField() {
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JTextField tmp2 = new JTextField() {
|
||||
public Dimension getMaximumSize() {
|
||||
Dimension d = super.getMaximumSize();
|
||||
d.height = getPreferredSize().height;
|
||||
return d;
|
||||
}
|
||||
};
|
||||
fileNameTextField = tmp2;
|
||||
|
||||
pathFieldLabel.setLabelFor(fileNameTextField);
|
||||
|
||||
@ -905,6 +910,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
||||
return approveSelectionAction;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class GTKDirectoryModel extends BasicDirectoryModel {
|
||||
FileSystemView fsv;
|
||||
private Comparator<File> fileComparator = new Comparator<File>() {
|
||||
@ -923,6 +929,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class GTKDirectoryListModel extends AbstractListModel implements ListDataListener {
|
||||
File curDir;
|
||||
public GTKDirectoryListModel() {
|
||||
@ -966,6 +973,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class GTKFileListModel extends AbstractListModel implements ListDataListener {
|
||||
public GTKFileListModel() {
|
||||
getModel().addListDataListener(this);
|
||||
@ -1009,6 +1017,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class FileCellRenderer extends DefaultListCellRenderer {
|
||||
public Component getListCellRendererComponent(JList list, Object value, int index,
|
||||
boolean isSelected, boolean cellHasFocus) {
|
||||
@ -1022,6 +1031,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class DirectoryCellRenderer extends DefaultListCellRenderer {
|
||||
public Component getListCellRendererComponent(JList list, Object value, int index,
|
||||
boolean isSelected, boolean cellHasFocus) {
|
||||
@ -1084,6 +1094,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
||||
/**
|
||||
* Data model for a type-face selection combo-box.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class DirectoryComboBoxModel extends AbstractListModel implements ComboBoxModel {
|
||||
Vector<File> directories = new Vector<File>();
|
||||
File selectedDirectory = null;
|
||||
@ -1160,6 +1171,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
||||
/**
|
||||
* Acts when DirectoryComboBox has changed the selected item.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class DirectoryComboBoxAction extends AbstractAction {
|
||||
protected DirectoryComboBoxAction() {
|
||||
super("DirectoryComboBoxAction");
|
||||
@ -1174,6 +1186,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
||||
/**
|
||||
* Creates a new folder.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class NewFolderAction extends AbstractAction {
|
||||
protected NewFolderAction() {
|
||||
super(FilePane.ACTION_NEW_FOLDER);
|
||||
@ -1209,6 +1222,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class GTKApproveSelectionAction extends ApproveSelectionAction {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
if (isDirectorySelected()) {
|
||||
@ -1240,6 +1254,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
||||
/**
|
||||
* Renames file
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class RenameFileAction extends AbstractAction {
|
||||
protected RenameFileAction() {
|
||||
super(FilePane.ACTION_EDIT_FILE_NAME);
|
||||
@ -1285,6 +1300,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
||||
/**
|
||||
* Render different filters
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public class FilterComboBoxRenderer extends DefaultListCellRenderer implements UIResource {
|
||||
public String getName() {
|
||||
// As SynthComboBoxRenderer's are asked for a size BEFORE they
|
||||
@ -1328,6 +1344,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
||||
/**
|
||||
* Data model for filter combo-box.
|
||||
*/
|
||||
@SuppressWarnings("serial") // JDK implementation class
|
||||
protected class FilterComboBoxModel extends AbstractListModel
|
||||
implements ComboBoxModel, PropertyChangeListener {
|
||||
protected FileFilter[] filters;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,7 @@ import sun.swing.SwingUtilities2;
|
||||
/**
|
||||
* @author Scott Violet
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass not serializable
|
||||
public class GTKLookAndFeel extends SynthLookAndFeel {
|
||||
private static final boolean IS_22;
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -1414,6 +1414,7 @@ class GTKPainter extends SynthPainter {
|
||||
}
|
||||
|
||||
// Refer to GTKLookAndFeel for details on this.
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
static class ListTableFocusBorder extends AbstractBorder implements
|
||||
UIResource {
|
||||
|
||||
@ -1482,6 +1483,7 @@ class GTKPainter extends SynthPainter {
|
||||
}
|
||||
|
||||
// TitledBorder implementation for GTK L&F
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
static class TitledBorder extends AbstractBorder implements UIResource {
|
||||
|
||||
public void paintBorder(Component c, Graphics g, int x, int y,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -54,6 +54,7 @@ import java.awt.Rectangle;
|
||||
*/
|
||||
public class MotifBorders {
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public static class BevelBorder extends AbstractBorder implements UIResource {
|
||||
private Color darkShadow = UIManager.getColor("controlShadow");
|
||||
private Color lightShadow = UIManager.getColor("controlLtHighlight");
|
||||
@ -87,6 +88,7 @@ public class MotifBorders {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public static class FocusBorder extends AbstractBorder implements UIResource {
|
||||
private Color focus;
|
||||
private Color control;
|
||||
@ -113,6 +115,7 @@ public class MotifBorders {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public static class ButtonBorder extends AbstractBorder implements UIResource {
|
||||
protected Color focus = UIManager.getColor("activeCaptionBorder");
|
||||
protected Color shadow = UIManager.getColor("Button.shadow");
|
||||
@ -191,6 +194,7 @@ public class MotifBorders {
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public static class ToggleButtonBorder extends ButtonBorder {
|
||||
|
||||
public ToggleButtonBorder(Color shadow, Color highlight, Color darkShadow, Color focus) {
|
||||
@ -224,6 +228,7 @@ public class MotifBorders {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public static class MenuBarBorder extends ButtonBorder {
|
||||
|
||||
public MenuBarBorder(Color shadow, Color highlight, Color darkShadow, Color focus) {
|
||||
@ -249,6 +254,7 @@ public class MotifBorders {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public static class FrameBorder extends AbstractBorder implements UIResource {
|
||||
|
||||
JComponent jcomp;
|
||||
@ -434,6 +440,7 @@ public class MotifBorders {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public static class InternalFrameBorder extends FrameBorder {
|
||||
|
||||
JInternalFrame frame;
|
||||
@ -618,6 +625,7 @@ public class MotifBorders {
|
||||
g.setColor(oldColor);
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public static class MotifPopupMenuBorder extends AbstractBorder implements UIResource {
|
||||
protected Font font;
|
||||
protected Color background;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -44,6 +44,7 @@ import java.beans.*;
|
||||
*
|
||||
* @author Arnaud Weber
|
||||
*/
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
public class MotifComboBoxUI extends BasicComboBoxUI implements Serializable {
|
||||
Icon arrowIcon;
|
||||
static final int HORIZ_MARGIN = 3;
|
||||
@ -93,6 +94,7 @@ public class MotifComboBoxUI extends BasicComboBoxUI implements Serializable {
|
||||
/**
|
||||
* Overriden to empty the MouseMotionListener.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class MotifComboPopup extends BasicComboPopup {
|
||||
|
||||
public MotifComboPopup( JComboBox comboBox ) {
|
||||
@ -279,6 +281,7 @@ public class MotifComboBoxUI extends BasicComboBoxUI implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
static class MotifComboBoxArrowIcon implements Icon, Serializable {
|
||||
private Color lightShadow;
|
||||
private Color darkShadow;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -200,6 +200,7 @@ public class MotifDesktopIconUI extends BasicDesktopIconUI
|
||||
defaultIcon = newIcon;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class IconLabel extends JPanel {
|
||||
JInternalFrame frame;
|
||||
|
||||
@ -291,6 +292,7 @@ public class MotifDesktopIconUI extends BasicDesktopIconUI
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class IconButton extends JButton {
|
||||
Icon icon;
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -72,6 +72,7 @@ public class MotifDesktopPaneUI extends javax.swing.plaf.basic.BasicDesktopPaneU
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
/// DragPane class
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class DragPane extends JComponent {
|
||||
public void paint(Graphics g) {
|
||||
g.setColor(Color.darkGray);
|
||||
@ -82,6 +83,7 @@ public class MotifDesktopPaneUI extends javax.swing.plaf.basic.BasicDesktopPaneU
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
/// MotifDesktopManager class
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
private class MotifDesktopManager extends DefaultDesktopManager implements Serializable, UIResource {
|
||||
JComponent dragPane;
|
||||
boolean usingDragPane = false;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -281,6 +281,7 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
||||
fc.setLayout(new BorderLayout(10, 10));
|
||||
fc.setAlignmentX(JComponent.CENTER_ALIGNMENT);
|
||||
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JPanel interior = new JPanel() {
|
||||
public Insets getInsets() {
|
||||
return insets;
|
||||
@ -303,13 +304,16 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
||||
if(currentDirectory != null) {
|
||||
curDirName = currentDirectory.getPath();
|
||||
}
|
||||
pathField = new JTextField(curDirName) {
|
||||
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JTextField tmp1 = new JTextField(curDirName) {
|
||||
public Dimension getMaximumSize() {
|
||||
Dimension d = super.getMaximumSize();
|
||||
d.height = getPreferredSize().height;
|
||||
return d;
|
||||
}
|
||||
};
|
||||
pathField = tmp1;
|
||||
pathField.setInheritsPopupMenu(true);
|
||||
l.setLabelFor(pathField);
|
||||
align(pathField);
|
||||
@ -337,13 +341,15 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
||||
align(l);
|
||||
leftPanel.add(l);
|
||||
|
||||
filterComboBox = new JComboBox<FileFilter>() {
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JComboBox tmp2 = new JComboBox<FileFilter>() {
|
||||
public Dimension getMaximumSize() {
|
||||
Dimension d = super.getMaximumSize();
|
||||
d.height = getPreferredSize().height;
|
||||
return d;
|
||||
}
|
||||
};
|
||||
filterComboBox = tmp2;
|
||||
filterComboBox.setInheritsPopupMenu(true);
|
||||
l.setLabelFor(filterComboBox);
|
||||
filterComboBoxModel = createFilterComboBoxModel();
|
||||
@ -413,13 +419,15 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
||||
align(fileNameLabel);
|
||||
interior.add(fileNameLabel);
|
||||
|
||||
filenameTextField = new JTextField() {
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JTextField tmp3 = new JTextField() {
|
||||
public Dimension getMaximumSize() {
|
||||
Dimension d = super.getMaximumSize();
|
||||
d.height = getPreferredSize().height;
|
||||
return d;
|
||||
}
|
||||
};
|
||||
filenameTextField = tmp3;
|
||||
filenameTextField.setInheritsPopupMenu(true);
|
||||
fileNameLabel.setLabelFor(filenameTextField);
|
||||
filenameTextField.addActionListener(getApproveSelectionAction());
|
||||
@ -436,11 +444,13 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
||||
buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.LINE_AXIS));
|
||||
buttonPanel.add(Box.createGlue());
|
||||
|
||||
approveButton = new JButton(getApproveButtonText(fc)) {
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JButton tmp4 = new JButton(getApproveButtonText(fc)) {
|
||||
public Dimension getMaximumSize() {
|
||||
return new Dimension(MAX_SIZE.width, this.getPreferredSize().height);
|
||||
}
|
||||
};
|
||||
approveButton = tmp4;
|
||||
approveButton.setMnemonic(getApproveButtonMnemonic(fc));
|
||||
approveButton.setToolTipText(getApproveButtonToolTipText(fc));
|
||||
approveButton.setInheritsPopupMenu(true);
|
||||
@ -450,6 +460,7 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
||||
buttonPanel.add(approveButton);
|
||||
buttonPanel.add(Box.createGlue());
|
||||
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JButton updateButton = new JButton(updateButtonText) {
|
||||
public Dimension getMaximumSize() {
|
||||
return new Dimension(MAX_SIZE.width, this.getPreferredSize().height);
|
||||
@ -464,6 +475,7 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
||||
buttonPanel.add(updateButton);
|
||||
buttonPanel.add(Box.createGlue());
|
||||
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JButton cancelButton = new JButton(cancelButtonText) {
|
||||
public Dimension getMaximumSize() {
|
||||
return new Dimension(MAX_SIZE.width, this.getPreferredSize().height);
|
||||
@ -478,6 +490,7 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
||||
buttonPanel.add(cancelButton);
|
||||
buttonPanel.add(Box.createGlue());
|
||||
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JButton helpButton = new JButton(helpButtonText) {
|
||||
public Dimension getMaximumSize() {
|
||||
return new Dimension(MAX_SIZE.width, this.getPreferredSize().height);
|
||||
@ -640,6 +653,7 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
||||
c.setAlignmentY(JComponent.TOP_ALIGNMENT);
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class FileCellRenderer extends DefaultListCellRenderer {
|
||||
public Component getListCellRendererComponent(JList list, Object value, int index,
|
||||
boolean isSelected, boolean cellHasFocus) {
|
||||
@ -651,6 +665,7 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class DirectoryCellRenderer extends DefaultListCellRenderer {
|
||||
public Component getListCellRendererComponent(JList list, Object value, int index,
|
||||
boolean isSelected, boolean cellHasFocus) {
|
||||
@ -662,6 +677,7 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class MotifDirectoryListModel extends AbstractListModel<File> implements ListDataListener {
|
||||
public MotifDirectoryListModel() {
|
||||
getModel().addListDataListener(this);
|
||||
@ -698,6 +714,7 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class MotifFileListModel extends AbstractListModel<File> implements ListDataListener {
|
||||
public MotifFileListModel() {
|
||||
getModel().addListDataListener(this);
|
||||
@ -759,6 +776,7 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
||||
/**
|
||||
* Render different type sizes and styles.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public class FilterComboBoxRenderer extends DefaultListCellRenderer {
|
||||
public Component getListCellRendererComponent(JList list,
|
||||
Object value, int index, boolean isSelected,
|
||||
@ -777,6 +795,7 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
||||
/**
|
||||
* Data model for a type-face selection combo-box.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class FilterComboBoxModel extends AbstractListModel<FileFilter> implements ComboBoxModel<FileFilter>,
|
||||
PropertyChangeListener {
|
||||
protected FileFilter[] filters;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -50,6 +50,7 @@ import java.io.Serializable;
|
||||
* 1.20 04/27/99
|
||||
* @author Georges Saab
|
||||
*/
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
public class MotifIconFactory implements Serializable
|
||||
{
|
||||
private static Icon checkBoxIcon;
|
||||
@ -90,6 +91,7 @@ public class MotifIconFactory implements Serializable
|
||||
return radioButtonIcon;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class CheckBoxIcon implements Icon, UIResource, Serializable {
|
||||
final static int csize = 13;
|
||||
|
||||
@ -264,6 +266,7 @@ public class MotifIconFactory implements Serializable
|
||||
}
|
||||
} // end class CheckBoxIcon
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class RadioButtonIcon implements Icon, UIResource, Serializable {
|
||||
private Color dot = UIManager.getColor("activeCaptionBorder");
|
||||
private Color highlight = UIManager.getColor("controlHighlight");
|
||||
@ -355,6 +358,7 @@ public class MotifIconFactory implements Serializable
|
||||
}
|
||||
} // end class RadioButtonIcon
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class MenuItemCheckIcon implements Icon, UIResource, Serializable
|
||||
{
|
||||
public void paintIcon(Component c,Graphics g, int x, int y)
|
||||
@ -365,6 +369,7 @@ public class MotifIconFactory implements Serializable
|
||||
} // end class MenuItemCheckIcon
|
||||
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class MenuItemArrowIcon implements Icon, UIResource, Serializable
|
||||
{
|
||||
public void paintIcon(Component c,Graphics g, int x, int y)
|
||||
@ -374,6 +379,7 @@ public class MotifIconFactory implements Serializable
|
||||
public int getIconHeight() { return 0; }
|
||||
} // end class MenuItemArrowIcon
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class MenuArrowIcon implements Icon, UIResource, Serializable
|
||||
{
|
||||
private Color focus = UIManager.getColor("windowBorder");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -42,6 +42,7 @@ import java.beans.PropertyVetoException;
|
||||
*
|
||||
* @since 1.3
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public class MotifInternalFrameTitlePane
|
||||
extends BasicInternalFrameTitlePane implements LayoutManager, ActionListener, PropertyChangeListener
|
||||
{
|
||||
@ -232,6 +233,7 @@ public class MotifInternalFrameTitlePane
|
||||
|
||||
static Dimension buttonDimension = new Dimension(BUTTON_SIZE, BUTTON_SIZE);
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private abstract class FrameButton extends JButton {
|
||||
|
||||
FrameButton() {
|
||||
@ -276,6 +278,7 @@ public class MotifInternalFrameTitlePane
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class MinimizeButton extends FrameButton {
|
||||
public void paintComponent(Graphics g) {
|
||||
super.paintComponent(g);
|
||||
@ -288,7 +291,8 @@ public class MotifInternalFrameTitlePane
|
||||
}
|
||||
}
|
||||
|
||||
private class MaximizeButton extends FrameButton {
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class MaximizeButton extends FrameButton {
|
||||
public void paintComponent(Graphics g) {
|
||||
super.paintComponent(g);
|
||||
int max = BUTTON_SIZE - 5;
|
||||
@ -302,6 +306,7 @@ public class MotifInternalFrameTitlePane
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class SystemButton extends FrameButton {
|
||||
public boolean isFocusTraversable() { return false; }
|
||||
public void requestFocus() {}
|
||||
@ -317,6 +322,7 @@ public class MotifInternalFrameTitlePane
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class Title extends FrameButton {
|
||||
Title(String title) {
|
||||
super();
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -130,6 +130,7 @@ public class MotifInternalFrameUI extends BasicInternalFrameUI {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
protected void setupMenuOpenKey(){
|
||||
super.setupMenuOpenKey();
|
||||
ActionMap map = SwingUtilities.getUIActionMap(frame);
|
||||
@ -149,6 +150,7 @@ public class MotifInternalFrameUI extends BasicInternalFrameUI {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
protected void setupMenuCloseKey(){
|
||||
ActionMap map = SwingUtilities.getUIActionMap(frame);
|
||||
if (map != null) {
|
||||
|
||||
@ -60,6 +60,7 @@ import sun.awt.OSInfo;
|
||||
*
|
||||
* @author unattributed
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public class MotifLookAndFeel extends BasicLookAndFeel
|
||||
{
|
||||
public String getName() {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -77,6 +77,7 @@ public class MotifOptionPaneUI extends BasicOptionPaneUI
|
||||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
protected Container createSeparator() {
|
||||
return new JPanel() {
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -71,6 +71,7 @@ public class MotifRadioButtonMenuItemUI extends BasicRadioButtonMenuItemUI
|
||||
return new ChangeHandler();
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
protected class ChangeHandler implements ChangeListener, Serializable {
|
||||
public void stateChanged(ChangeEvent e) {
|
||||
JMenuItem c = (JMenuItem)e.getSource();
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -43,6 +43,7 @@ import java.awt.event.*;
|
||||
* version of Swing. A future release of Swing will provide support for
|
||||
* long term persistence.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public class MotifScrollBarButton extends BasicArrowButton
|
||||
{
|
||||
private Color darkShadow = UIManager.getColor("controlShadow");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -45,6 +45,7 @@ import javax.swing.plaf.basic.BasicSplitPaneDivider;
|
||||
*
|
||||
* @author Jeff Dinkins
|
||||
*/
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
public class MotifSplitPaneDivider extends BasicSplitPaneDivider
|
||||
{
|
||||
/**
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -66,6 +66,7 @@ public class MotifTextUI {
|
||||
* version of Swing. A future release of Swing will provide support for
|
||||
* long term persistence.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public static class MotifCaret extends DefaultCaret implements UIResource {
|
||||
|
||||
/**
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -46,6 +46,7 @@ import java.util.*;
|
||||
*
|
||||
* @author Jeff Dinkins
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public class MotifTreeCellRenderer extends DefaultTreeCellRenderer
|
||||
{
|
||||
static final int LEAF_SIZE = 13;
|
||||
@ -69,6 +70,7 @@ public class MotifTreeCellRenderer extends DefaultTreeCellRenderer
|
||||
* version of Swing. A future release of Swing will provide support for
|
||||
* long term persistence.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
public static class TreeLeafIcon implements Icon, Serializable {
|
||||
|
||||
Color bg;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -91,6 +91,7 @@ public class MotifTreeUI extends BasicTreeUI
|
||||
* version of Swing. A future release of Swing will provide support for
|
||||
* long term persistence.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
public static class MotifExpandedIcon implements Icon, Serializable {
|
||||
static Color bg;
|
||||
static Color fg;
|
||||
@ -139,6 +140,7 @@ public class MotifTreeUI extends BasicTreeUI
|
||||
* version of Swing. A future release of Swing will provide support for
|
||||
* long term persistence.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
public static class MotifCollapsedIcon extends MotifExpandedIcon {
|
||||
public static Icon createCollapsedIcon() {
|
||||
return new MotifCollapsedIcon();
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,5 +30,6 @@ package com.sun.java.swing.plaf.nimbus;
|
||||
* @deprecated Use {@link javax.swing.plaf.nimbus.NimbusLookAndFeel} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings("serial") // Superclass not serializable
|
||||
public class NimbusLookAndFeel extends javax.swing.plaf.nimbus.NimbusLookAndFeel {
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -114,6 +114,7 @@ public class WindowsBorders {
|
||||
return internalFrameBorder;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public static class ProgressBarBorder extends AbstractBorder implements UIResource {
|
||||
protected Color shadow;
|
||||
protected Color highlight;
|
||||
@ -144,6 +145,7 @@ public class WindowsBorders {
|
||||
* <p>
|
||||
* @since 1.4
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public static class ToolBarBorder extends AbstractBorder implements UIResource, SwingConstants {
|
||||
protected Color shadow;
|
||||
protected Color highlight;
|
||||
@ -247,6 +249,7 @@ public class WindowsBorders {
|
||||
* This class is an implementation of a dashed border.
|
||||
* @since 1.4
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public static class DashedBorder extends LineBorder implements UIResource {
|
||||
public DashedBorder(Color color) {
|
||||
super(color);
|
||||
@ -272,6 +275,7 @@ public class WindowsBorders {
|
||||
* A dashed border that paints itself in the complementary color
|
||||
* of the component's background color.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
static class ComplementDashedBorder extends LineBorder implements UIResource {
|
||||
private Color origColor;
|
||||
private Color paintColor;
|
||||
@ -297,6 +301,7 @@ public class WindowsBorders {
|
||||
* This class is an implementation of the InternalFrameLine border.
|
||||
* @since 1.4
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public static class InternalFrameLineBorder extends LineBorder implements
|
||||
UIResource {
|
||||
protected Color activeColor;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -37,6 +37,7 @@ package com.sun.java.swing.plaf.windows;
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public class WindowsClassicLookAndFeel extends WindowsLookAndFeel {
|
||||
public String getName() {
|
||||
return "Windows Classic";
|
||||
|
||||
@ -407,6 +407,7 @@ public class WindowsComboBoxUI extends BasicComboBoxUI {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class XPComboBoxButton extends XPStyle.GlyphButton {
|
||||
public XPComboBoxButton() {
|
||||
super(null,
|
||||
@ -459,6 +460,7 @@ public class WindowsComboBoxUI extends BasicComboBoxUI {
|
||||
* @deprecated As of Java 2 platform v1.4.
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class WindowsComboPopup extends BasicComboPopup {
|
||||
|
||||
public WindowsComboPopup( JComboBox cBox ) {
|
||||
@ -510,6 +512,7 @@ public class WindowsComboBoxUI extends BasicComboBoxUI {
|
||||
* Subclassed to set opacity {@code false} on the renderer
|
||||
* and to show border for focused cells.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private static class WindowsComboBoxRenderer
|
||||
extends BasicComboBoxRenderer.UIResource {
|
||||
private static final Object BORDER_KEY
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,7 @@ import java.lang.ref.WeakReference;
|
||||
* @see javax.swing.DefaultDesktopManager
|
||||
* @author Thomas Ball
|
||||
*/
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
public class WindowsDesktopManager extends DefaultDesktopManager
|
||||
implements java.io.Serializable, javax.swing.plaf.UIResource {
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -225,7 +225,8 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
fc.add(topPanel, BorderLayout.NORTH);
|
||||
|
||||
// ComboBox Label
|
||||
lookInLabel = new JLabel(lookInLabelText, JLabel.TRAILING) {
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JLabel tmp1 = new JLabel(lookInLabelText, JLabel.TRAILING) {
|
||||
public Dimension getPreferredSize() {
|
||||
return getMinimumSize();
|
||||
}
|
||||
@ -238,6 +239,7 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
return d;
|
||||
}
|
||||
};
|
||||
lookInLabel = tmp1;
|
||||
lookInLabel.setDisplayedMnemonic(lookInLabelMnemonic);
|
||||
lookInLabel.setAlignmentX(JComponent.LEFT_ALIGNMENT);
|
||||
lookInLabel.setAlignmentY(JComponent.CENTER_ALIGNMENT);
|
||||
@ -245,7 +247,8 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
topPanel.add(Box.createRigidArea(new Dimension(8,0)));
|
||||
|
||||
// CurrentDir ComboBox
|
||||
directoryComboBox = new JComboBox<File>() {
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JComboBox<File> tmp2 = new JComboBox<File>() {
|
||||
public Dimension getMinimumSize() {
|
||||
Dimension d = super.getMinimumSize();
|
||||
d.width = 60;
|
||||
@ -259,6 +262,7 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
return d;
|
||||
}
|
||||
};
|
||||
directoryComboBox = tmp2;
|
||||
directoryComboBox.putClientProperty( "JComboBox.lightweightKeyboardNavigation", "Lightweight" );
|
||||
lookInLabel.setLabelFor(directoryComboBox);
|
||||
directoryComboBoxModel = createDirectoryComboBoxModel(fc);
|
||||
@ -416,12 +420,13 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
fileAndFilterPanel.add(Box.createRigidArea(vstrut8));
|
||||
fileAndFilterPanel.setLayout(new BoxLayout(fileAndFilterPanel, BoxLayout.Y_AXIS));
|
||||
|
||||
|
||||
filenameTextField = new JTextField(35) {
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JTextField tmp3 = new JTextField(35) {
|
||||
public Dimension getMaximumSize() {
|
||||
return new Dimension(Short.MAX_VALUE, super.getPreferredSize().height);
|
||||
}
|
||||
};
|
||||
filenameTextField = tmp3;
|
||||
|
||||
fileNameLabel.setLabelFor(filenameTextField);
|
||||
filenameTextField.addFocusListener(
|
||||
@ -456,12 +461,14 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
// buttons
|
||||
getButtonPanel().setLayout(new BoxLayout(getButtonPanel(), BoxLayout.Y_AXIS));
|
||||
|
||||
approveButton = new JButton(getApproveButtonText(fc)) {
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JButton tmp4 = new JButton(getApproveButtonText(fc)) {
|
||||
public Dimension getMaximumSize() {
|
||||
return approveButton.getPreferredSize().width > cancelButton.getPreferredSize().width ?
|
||||
approveButton.getPreferredSize() : cancelButton.getPreferredSize();
|
||||
}
|
||||
};
|
||||
approveButton = tmp4;
|
||||
Insets buttonMargin = approveButton.getMargin();
|
||||
buttonMargin = new InsetsUIResource(buttonMargin.top, buttonMargin.left + 5,
|
||||
buttonMargin.bottom, buttonMargin.right + 5);
|
||||
@ -473,12 +480,14 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
getButtonPanel().add(approveButton);
|
||||
getButtonPanel().add(Box.createRigidArea(vstrut4));
|
||||
|
||||
cancelButton = new JButton(cancelButtonText) {
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JButton tmp5 = new JButton(cancelButtonText) {
|
||||
public Dimension getMaximumSize() {
|
||||
return approveButton.getPreferredSize().width > cancelButton.getPreferredSize().width ?
|
||||
approveButton.getPreferredSize() : cancelButton.getPreferredSize();
|
||||
}
|
||||
};
|
||||
cancelButton = tmp5;
|
||||
cancelButton.setMargin(buttonMargin);
|
||||
cancelButton.setToolTipText(cancelButtonToolTipText);
|
||||
cancelButton.addActionListener(getCancelSelectionAction());
|
||||
@ -589,6 +598,7 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
}
|
||||
|
||||
// Obsolete class, not used in this version.
|
||||
@SuppressWarnings("serial")
|
||||
protected class WindowsNewFolderAction extends NewFolderAction {
|
||||
}
|
||||
|
||||
@ -597,6 +607,7 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
}
|
||||
|
||||
// Obsolete class, not used in this version.
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class FileRenderer extends DefaultListCellRenderer {
|
||||
}
|
||||
|
||||
@ -917,6 +928,7 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
return new DirectoryComboBoxRenderer();
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
private static JButton createToolButton(Action a, Icon defaultIcon, String toolTipText, String accessibleName) {
|
||||
final JButton result = new JButton(a);
|
||||
|
||||
@ -979,6 +991,7 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
//
|
||||
// Renderer for DirectoryComboBox
|
||||
//
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
class DirectoryComboBoxRenderer extends DefaultListCellRenderer {
|
||||
IndentIcon ii = new IndentIcon();
|
||||
public Component getListCellRendererComponent(JList list, Object value,
|
||||
@ -1036,6 +1049,7 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
/**
|
||||
* Data model for a type-face selection combo-box.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class DirectoryComboBoxModel extends AbstractListModel<File> implements ComboBoxModel<File> {
|
||||
Vector<File> directories = new Vector<File>();
|
||||
int[] depths = null;
|
||||
@ -1168,6 +1182,7 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
/**
|
||||
* Render different type sizes and styles.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public class FilterComboBoxRenderer extends DefaultListCellRenderer {
|
||||
public Component getListCellRendererComponent(JList list,
|
||||
Object value, int index, boolean isSelected,
|
||||
@ -1193,6 +1208,7 @@ public class WindowsFileChooserUI extends BasicFileChooserUI {
|
||||
/**
|
||||
* Data model for a type-face selection combo-box.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
protected class FilterComboBoxModel extends AbstractListModel<FileFilter> implements ComboBoxModel<FileFilter>,
|
||||
PropertyChangeListener {
|
||||
protected FileFilter[] filters;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -51,6 +51,7 @@ import sun.swing.MenuItemCheckIconFactory;
|
||||
* @author Georges Saab
|
||||
* @author Rich Schiavi
|
||||
*/
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
public class WindowsIconFactory implements Serializable
|
||||
{
|
||||
private static Icon frame_closeIcon;
|
||||
@ -160,6 +161,7 @@ public class WindowsIconFactory implements Serializable
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class FrameButtonIcon implements Icon, Serializable {
|
||||
private Part part;
|
||||
|
||||
@ -296,6 +298,7 @@ public class WindowsIconFactory implements Serializable
|
||||
|
||||
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class ResizeIcon implements Icon, Serializable {
|
||||
public void paintIcon(Component c, Graphics g, int x, int y) {
|
||||
g.setColor(UIManager.getColor("InternalFrame.resizeIconHighlight"));
|
||||
@ -315,6 +318,7 @@ public class WindowsIconFactory implements Serializable
|
||||
public int getIconHeight() { return 13; }
|
||||
};
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class CheckBoxIcon implements Icon, Serializable
|
||||
{
|
||||
final static int csize = 13;
|
||||
@ -428,6 +432,7 @@ public class WindowsIconFactory implements Serializable
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class RadioButtonIcon implements Icon, UIResource, Serializable
|
||||
{
|
||||
public void paintIcon(Component c, Graphics g, int x, int y) {
|
||||
@ -542,6 +547,7 @@ public class WindowsIconFactory implements Serializable
|
||||
} // end class RadioButtonIcon
|
||||
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class CheckBoxMenuItemIcon implements Icon, UIResource, Serializable
|
||||
{
|
||||
public void paintIcon(Component c, Graphics g, int x, int y) {
|
||||
@ -567,6 +573,7 @@ public class WindowsIconFactory implements Serializable
|
||||
} // End class CheckBoxMenuItemIcon
|
||||
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class RadioButtonMenuItemIcon implements Icon, UIResource, Serializable
|
||||
{
|
||||
public void paintIcon(Component c, Graphics g, int x, int y) {
|
||||
@ -583,6 +590,7 @@ public class WindowsIconFactory implements Serializable
|
||||
} // End class RadioButtonMenuItemIcon
|
||||
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class MenuItemCheckIcon implements Icon, UIResource, Serializable{
|
||||
public void paintIcon(Component c, Graphics g, int x, int y) {
|
||||
/* For debugging:
|
||||
@ -597,6 +605,7 @@ public class WindowsIconFactory implements Serializable
|
||||
|
||||
} // End class MenuItemCheckIcon
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class MenuItemArrowIcon implements Icon, UIResource, Serializable {
|
||||
public void paintIcon(Component c, Graphics g, int x, int y) {
|
||||
/* For debugging:
|
||||
@ -611,6 +620,7 @@ public class WindowsIconFactory implements Serializable
|
||||
|
||||
} // End class MenuItemArrowIcon
|
||||
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class MenuArrowIcon implements Icon, UIResource, Serializable {
|
||||
public void paintIcon(Component c, Graphics g, int x, int y) {
|
||||
if (WindowsMenuItemUI.isVistaPainting()) {
|
||||
@ -722,6 +732,7 @@ public class WindowsIconFactory implements Serializable
|
||||
* JRadioButtonMenuItem.
|
||||
* Note: to be used on Vista only.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
private static class VistaMenuItemCheckIcon
|
||||
implements Icon, UIResource, Serializable {
|
||||
|
||||
|
||||
@ -41,6 +41,7 @@ import java.beans.PropertyVetoException;
|
||||
import static com.sun.java.swing.plaf.windows.TMSchema.*;
|
||||
import static com.sun.java.swing.plaf.windows.XPStyle.Skin;
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public class WindowsInternalFrameTitlePane extends BasicInternalFrameTitlePane {
|
||||
private Color selectedTitleGradientColor;
|
||||
private Color notSelectedTitleGradientColor;
|
||||
@ -267,7 +268,8 @@ public class WindowsInternalFrameTitlePane extends BasicInternalFrameTitlePane {
|
||||
systemPopupMenu = new JPopupMenu();
|
||||
addSystemMenuItems(systemPopupMenu);
|
||||
enableActions();
|
||||
systemLabel = new JLabel(frame.getFrameIcon()) {
|
||||
@SuppressWarnings("serial") // anonymous class
|
||||
JLabel tmp = new JLabel(frame.getFrameIcon()) {
|
||||
protected void paintComponent(Graphics g) {
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
@ -303,6 +305,7 @@ public class WindowsInternalFrameTitlePane extends BasicInternalFrameTitlePane {
|
||||
g.dispose();
|
||||
}
|
||||
};
|
||||
systemLabel = tmp;
|
||||
systemLabel.addMouseListener(new MouseAdapter() {
|
||||
public void mouseClicked(MouseEvent e) {
|
||||
if (e.getClickCount() == 2 && frame.isClosable() &&
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -88,6 +88,7 @@ public class WindowsInternalFrameUI extends BasicInternalFrameUI
|
||||
return titlePane;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class XPBorder extends AbstractBorder {
|
||||
private Skin leftSkin = xp.getSkin(frame, Part.WP_FRAMELEFT);
|
||||
private Skin rightSkin = xp.getSkin(frame, Part.WP_FRAMERIGHT);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -92,6 +92,7 @@ import com.sun.java.swing.plaf.windows.WindowsIconFactory.VistaMenuItemCheckIcon
|
||||
*
|
||||
* @author unattributed
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public class WindowsLookAndFeel extends BasicLookAndFeel
|
||||
{
|
||||
/**
|
||||
@ -2018,6 +2019,7 @@ public class WindowsLookAndFeel extends BasicLookAndFeel
|
||||
*
|
||||
* @since 1.4
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private static class AudioAction extends AbstractAction {
|
||||
private Runnable audioRunnable;
|
||||
private String audioResource;
|
||||
@ -2560,4 +2562,4 @@ public class WindowsLookAndFeel extends BasicLookAndFeel
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -134,6 +134,7 @@ public class WindowsMenuBarUI extends BasicMenuBarUI
|
||||
* Action that activates the menu (e.g. when F10 is pressed).
|
||||
* Unlike BasicMenuBarUI.TakeFocus, this Action will not show menu popup.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private static class TakeFocus extends AbstractAction {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
JMenuBar menuBar = (JMenuBar)e.getSource();
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, 2002, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -49,6 +49,7 @@ import java.awt.Graphics;
|
||||
*
|
||||
* @author Amy Fowler
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
class WindowsPopupWindow extends JWindow {
|
||||
|
||||
static final int UNDEFINED_WINDOW_TYPE = 0;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -273,6 +273,7 @@ public class WindowsScrollBarUI extends BasicScrollBarUI {
|
||||
* document up/down. It differs from BasicArrowButton in that the
|
||||
* preferred size is always a square.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class WindowsArrowButton extends BasicArrowButton {
|
||||
|
||||
public WindowsArrowButton(int direction, Color background, Color shadow,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -44,6 +44,7 @@ import javax.swing.plaf.basic.BasicSplitPaneDivider;
|
||||
*
|
||||
* @author Jeff Dinkins
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public class WindowsSplitPaneDivider extends BasicSplitPaneDivider
|
||||
{
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -71,6 +71,7 @@ public class WindowsTableHeaderUI extends BasicTableHeaderUI {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // JDK-implementation class
|
||||
private class XPDefaultRenderer extends DefaultTableCellHeaderRenderer {
|
||||
Skin skin;
|
||||
boolean isSelected, hasFocus, hasRollover;
|
||||
|
||||
@ -100,6 +100,7 @@ public class WindowsTextFieldUI extends BasicTextFieldUI
|
||||
* WindowsFieldCaret has different scrolling behavior than
|
||||
* DefaultCaret.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
static class WindowsFieldCaret extends DefaultCaret implements UIResource {
|
||||
|
||||
public WindowsFieldCaret() {
|
||||
|
||||
@ -62,6 +62,7 @@ public abstract class WindowsTextUI extends BasicTextUI {
|
||||
static LayeredHighlighter.LayerPainter WindowsPainter = new WindowsHighlightPainter(null);
|
||||
|
||||
/* public */
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
static class WindowsCaret extends DefaultCaret
|
||||
implements UIResource {
|
||||
/**
|
||||
|
||||
@ -127,6 +127,7 @@ public class WindowsTreeUI extends BasicTreeUI {
|
||||
* version of Swing. A future release of Swing will provide support for
|
||||
* long term persistence.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Same-version serialization only
|
||||
public static class ExpandedIcon implements Icon, Serializable {
|
||||
|
||||
static public Icon createExpandedIcon() {
|
||||
@ -179,6 +180,7 @@ public class WindowsTreeUI extends BasicTreeUI {
|
||||
* version of Swing. A future release of Swing will provide support for
|
||||
* long term persistence.
|
||||
*/
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public static class CollapsedIcon extends ExpandedIcon {
|
||||
static public Icon createCollapsedIcon() {
|
||||
return new CollapsedIcon();
|
||||
@ -195,6 +197,7 @@ public class WindowsTreeUI extends BasicTreeUI {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
public class WindowsTreeCellRenderer extends DefaultTreeCellRenderer {
|
||||
|
||||
/**
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -305,6 +305,7 @@ class XPStyle {
|
||||
return border;
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class XPFillBorder extends LineBorder implements UIResource {
|
||||
XPFillBorder(Color color, int thickness) {
|
||||
super(color, thickness);
|
||||
@ -333,6 +334,7 @@ class XPStyle {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class XPStatefulFillBorder extends XPFillBorder {
|
||||
private final Part part;
|
||||
private final Prop prop;
|
||||
@ -360,6 +362,7 @@ class XPStyle {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class XPImageBorder extends AbstractBorder implements UIResource {
|
||||
Skin skin;
|
||||
|
||||
@ -399,6 +402,7 @@ class XPStyle {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
private class XPEmptyBorder extends EmptyBorder implements UIResource {
|
||||
XPEmptyBorder(Insets m) {
|
||||
super(m.top+2, m.left+2, m.bottom+2, m.right+2);
|
||||
@ -674,6 +678,7 @@ class XPStyle {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial") // Superclass is not serializable across versions
|
||||
static class GlyphButton extends JButton {
|
||||
private Skin skin;
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -63,6 +63,7 @@ import sun.swing.plaf.synth.*;
|
||||
* @since 1.5
|
||||
* @author Scott Violet
|
||||
*/
|
||||
@SuppressWarnings("serial") // Per above comment, not actually serializable
|
||||
public class SynthLookAndFeel extends BasicLookAndFeel {
|
||||
/**
|
||||
* Used in a handful of places where we need an empty Insets.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user