8133803: Swing JFileChooserBug2 test fais with MotifLookAndFeel
Reviewed-by: alexsch, serb
--- a/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifFileChooserUI.java Wed Sep 16 10:01:24 2015 +0300
+++ b/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifFileChooserUI.java Wed Sep 16 10:05:34 2015 +0300
@@ -306,7 +306,7 @@
}
@SuppressWarnings("serial") // anonymous class
- JTextField tmp1 = new JTextField(curDirName) {
+ JTextField tmp1 = new JTextField(curDirName, 35) {
public Dimension getMaximumSize() {
Dimension d = super.getMaximumSize();
d.height = getPreferredSize().height;
@@ -420,7 +420,7 @@
interior.add(fileNameLabel);
@SuppressWarnings("serial") // anonymous class
- JTextField tmp3 = new JTextField() {
+ JTextField tmp3 = new JTextField(35) {
public Dimension getMaximumSize() {
Dimension d = super.getMaximumSize();
d.height = getPreferredSize().height;