We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cd5a50 commit 911bc70Copy full SHA for 911bc70
src/java.desktop/share/classes/javax/swing/filechooser/FileSystemView.java
@@ -268,7 +268,7 @@ public Icon getSystemIcon(File f) {
268
* <p>
269
* Example: <pre>
270
* FileSystemView fsv = FileSystemView.getFileSystemView();
271
- * Icon icon = fsv.getSystemIcon("application.exe", 64);
+ * Icon icon = fsv.getSystemIcon(new File("application.exe"), 64);
272
* JLabel label = new JLabel(icon);
273
* </pre>
274
*
0 commit comments