< prev index next >
src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java
Print this page
*** 141,150 ****
--- 141,151 ----
map.put("Go Up", getChangeToParentDirectoryAction());
map.put("fileNameCompletion", getFileNameCompletionAction());
return map;
}
+ @SuppressWarnings("deprecation")
public String getFileName() {
JFileChooser fc = getFileChooser();
String typedInName = fileNameTextField != null ?
fileNameTextField.getText() : null;
*** 417,426 ****
--- 418,428 ----
return new DoubleClickListener(list);
}
+ @SuppressWarnings("deprecation")
protected class SelectionListener implements ListSelectionListener {
public void valueChanged(ListSelectionEvent e) {
if (!e.getValueIsAdjusting()) {
JFileChooser chooser = getFileChooser();
JList<?> list = (JList) e.getSource();
< prev index next >