Skip to content

Commit 856b483

Browse files
committed
8340306: Add border around instructions in PassFailJFrame
Backport-of: 0120d3eed50bdc9fa53f2c41b31791620aeef613
1 parent 256a475 commit 856b483

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
@@ -74,6 +74,7 @@
7474
import javax.swing.text.html.StyleSheet;
7575

7676
import static java.util.Collections.unmodifiableList;
77+
import static javax.swing.BorderFactory.createEmptyBorder;
7778
import static javax.swing.SwingUtilities.invokeAndWait;
7879
import static javax.swing.SwingUtilities.isEventDispatchThread;
7980

@@ -501,6 +502,7 @@ private static JTextComponent configurePlainText(String instructions,
501502
JTextArea text = new JTextArea(instructions, rows, columns);
502503
text.setLineWrap(true);
503504
text.setWrapStyleWord(true);
505+
text.setBorder(createEmptyBorder(4, 4, 4, 4));
504506
return text;
505507
}
506508

0 commit comments

Comments
 (0)