src/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java
Print this page
@@ -173,11 +173,11 @@
public Action getNewFolderAction() {
return SynthFileChooserUIImpl.this.getNewFolderAction();
}
- public MouseListener createDoubleClickListener(JList list) {
+ public MouseListener createDoubleClickListener(JList<?> list) {
return SynthFileChooserUIImpl.this.createDoubleClickListener(getFileChooser(),
list);
}
public ListSelectionListener createListSelectionListener() {
@@ -561,11 +561,11 @@
}
if (currentDirectory != null) {
JComponent cb = getDirectoryComboBox();
if (cb instanceof JComboBox) {
- ComboBoxModel model = ((JComboBox)cb).getModel();
+ ComboBoxModel<?> model = ((JComboBox)cb).getModel();
if (model instanceof DirectoryComboBoxModel) {
((DirectoryComboBoxModel)model).addItem(currentDirectory);
}
}