< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java
Print this page
@@ -500,10 +500,11 @@
}
public void mouseReleased(MouseEvent evt) {
}
+ @SuppressWarnings("deprecation")
public void valueChanged(ListSelectionEvent evt) {
if(!evt.getValueIsAdjusting()) {
JFileChooser chooser = getFileChooser();
FileSystemView fsv = chooser.getFileSystemView();
@SuppressWarnings("unchecked")
@@ -1303,10 +1304,11 @@
* argument is provided to enable sharing of TransferHandlers by
* multiple components.
* @return The representation of the data to be transfered.
*
*/
+ @SuppressWarnings("deprecation")
protected Transferable createTransferable(JComponent c) {
Object[] values = null;
if (c instanceof JList) {
values = ((JList)c).getSelectedValues();
} else if (c instanceof JTable) {
< prev index next >