Skip to content

Commit 28a6062

Browse files
author
duke
committed
Backport 0120d3eed50bdc9fa53f2c41b31791620aeef613
1 parent 3660c07 commit 28a6062

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/jdk/java/awt/regtesthelpers/PassFailJFrame.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
import javax.swing.text.html.StyleSheet;
7373

7474
import static java.util.Collections.unmodifiableList;
75+
import static javax.swing.BorderFactory.createEmptyBorder;
7576
import static javax.swing.SwingUtilities.invokeAndWait;
7677
import static javax.swing.SwingUtilities.isEventDispatchThread;
7778

@@ -465,6 +466,7 @@ private static JTextComponent configurePlainText(String instructions,
465466
JTextArea text = new JTextArea(instructions, rows, columns);
466467
text.setLineWrap(true);
467468
text.setWrapStyleWord(true);
469+
text.setBorder(createEmptyBorder(4, 4, 4, 4));
468470
return text;
469471
}
470472

0 commit comments

Comments
 (0)