src/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2003, 2010, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -188,10 +188,11 @@
protected void installDefaults(JFileChooser fc) {
super.installDefaults(fc);
readOnly = UIManager.getBoolean("FileChooser.readOnly");
}
+ @SuppressWarnings("serial") // anonymous classes inside
public void installComponents(JFileChooser fc) {
super.installComponents(fc);
SynthContext context = getContext(fc, ENABLED);
@@ -732,10 +733,11 @@
}
/**
* Data model for a type-face selection combo-box.
*/
+ @SuppressWarnings("serial") // JDK-implementation class
protected class DirectoryComboBoxModel extends AbstractListModel<File> implements ComboBoxModel<File> {
Vector<File> directories = new Vector<File>();
int[] depths = null;
File selectedDirectory = null;
JFileChooser chooser = getFileChooser();
@@ -861,10 +863,11 @@
}
/**
* Acts when DirectoryComboBox has changed the selected item.
*/
+ @SuppressWarnings("serial") // JDK-implementation class
protected class DirectoryComboBoxAction extends AbstractAction {
protected DirectoryComboBoxAction() {
super("DirectoryComboBoxAction");
}
@@ -921,10 +924,11 @@
}
/**
* Data model for a type-face selection combo-box.
*/
+ @SuppressWarnings("serial") // JDK-implementation class
protected class FilterComboBoxModel extends AbstractFilterComboBoxModel {
protected JFileChooser getFileChooser() {
return SynthFileChooserUIImpl.this.getFileChooser();
}
}
@@ -1010,10 +1014,11 @@
for (int i = 0; i < group.length; i++) {
group[i].group = group;
}
}
+ @SuppressWarnings("serial") // JDK-implementation class
private class AlignedLabel extends JLabel {
private AlignedLabel[] group;
private int maxWidth = 0;
AlignedLabel() {