src/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java

Print this page

        

*** 173,183 **** public Action getNewFolderAction() { return SynthFileChooserUIImpl.this.getNewFolderAction(); } ! public MouseListener createDoubleClickListener(JList list) { return SynthFileChooserUIImpl.this.createDoubleClickListener(getFileChooser(), list); } public ListSelectionListener createListSelectionListener() { --- 173,183 ---- public Action getNewFolderAction() { return SynthFileChooserUIImpl.this.getNewFolderAction(); } ! public MouseListener createDoubleClickListener(JList<?> list) { return SynthFileChooserUIImpl.this.createDoubleClickListener(getFileChooser(), list); } public ListSelectionListener createListSelectionListener() {
*** 561,571 **** } if (currentDirectory != null) { JComponent cb = getDirectoryComboBox(); if (cb instanceof JComboBox) { ! ComboBoxModel model = ((JComboBox)cb).getModel(); if (model instanceof DirectoryComboBoxModel) { ((DirectoryComboBoxModel)model).addItem(currentDirectory); } } --- 561,571 ---- } if (currentDirectory != null) { JComponent cb = getDirectoryComboBox(); if (cb instanceof JComboBox) { ! ComboBoxModel<?> model = ((JComboBox)cb).getModel(); if (model instanceof DirectoryComboBoxModel) { ((DirectoryComboBoxModel)model).addItem(currentDirectory); } }