6977587: GTK L&F: jnlp: java.io.IOException thrown when choosing more than 1 file in the dialog
authorrupashka
Sat, 04 Jun 2011 01:13:04 +0400
changeset 9786 e131e14f5645
parent 9769 7af3ada3cf8e
child 9787 02a7b9f61348
6977587: GTK L&F: jnlp: java.io.IOException thrown when choosing more than 1 file in the dialog Reviewed-by: alexp
jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java
--- a/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java	Sat May 28 11:55:32 2011 +0400
+++ b/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java	Sat Jun 04 01:13:04 2011 +0400
@@ -174,8 +174,11 @@
 
         // construct the resulting string
         for (int i=0; i<len; i++) {
+            if (i > 0) {
+                buf.append(" ");
+            }
             if (len > 1) {
-                buf.append(" \"");
+                buf.append("\"");
             }
             buf.append(result.get(i));
             if (len > 1) {