summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/javax/swing/plaf/metal/MetalFileChooserUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/javax/swing/plaf/metal/MetalFileChooserUI.java')
-rw-r--r--libjava/classpath/javax/swing/plaf/metal/MetalFileChooserUI.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/libjava/classpath/javax/swing/plaf/metal/MetalFileChooserUI.java b/libjava/classpath/javax/swing/plaf/metal/MetalFileChooserUI.java
index 967c40d29ad..cb94c87b846 100644
--- a/libjava/classpath/javax/swing/plaf/metal/MetalFileChooserUI.java
+++ b/libjava/classpath/javax/swing/plaf/metal/MetalFileChooserUI.java
@@ -1545,8 +1545,6 @@ public class MetalFileChooserUI
fileListPanel = new JPanel(new BorderLayout());
fileList = new JList(getModel());
scrollPane = new JScrollPane(fileList);
- scrollPane.setVerticalScrollBarPolicy
- (JScrollPane.VERTICAL_SCROLLBAR_NEVER);
fileList.setLayoutOrientation(JList.VERTICAL_WRAP);
fileList.setCellRenderer(new FileRenderer());
}
@@ -1557,7 +1555,10 @@ public class MetalFileChooserUI
scrollPane.getViewport().setView(fileList);
}
fileListPanel.add(scrollPane);
-
+ // This size was determined using BeanShell and dumping the JFileChooser
+ // component hierarchy. Sun has an internal FilePane class in there, but
+ // that probably doesn't matter atm.
+ fileListPanel.setPreferredSize(new Dimension(405, 135));
return fileListPanel;
}
OpenPOWER on IntegriCloud