# HG changeset patch # User ssadetsky # Date 1442387134 -10800 # Node ID 60583faf62879e00906ba38705b4532579c5f196 # Parent 3e91092d2a15b1928aa63bd6898f5f5988f82657 8133803: Swing JFileChooserBug2 test fais with MotifLookAndFeel Reviewed-by: alexsch, serb diff -r 3e91092d2a15 -r 60583faf6287 jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifFileChooserUI.java --- 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;