Skip to content

Commit 911bc70

Browse files
committed
Example in JavaDoc fixed
1 parent 4cd5a50 commit 911bc70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java.desktop/share/classes/javax/swing/filechooser/FileSystemView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public Icon getSystemIcon(File f) {
268268
* <p>
269269
* Example: <pre>
270270
* FileSystemView fsv = FileSystemView.getFileSystemView();
271-
* Icon icon = fsv.getSystemIcon("application.exe", 64);
271+
* Icon icon = fsv.getSystemIcon(new File("application.exe"), 64);
272272
* JLabel label = new JLabel(icon);
273273
* </pre>
274274
*

0 commit comments

Comments
 (0)