Skip to content

Commit

Permalink
8340306: Add border around instructions in PassFailJFrame
Browse files Browse the repository at this point in the history
Backport-of: 0120d3e
  • Loading branch information
aivanov-jdk committed Sep 27, 2024
1 parent faa89f4 commit f63b702
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/jdk/java/awt/regtesthelpers/PassFailJFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
import javax.swing.text.html.StyleSheet;

import static java.util.Collections.unmodifiableList;
import static javax.swing.BorderFactory.createEmptyBorder;
import static javax.swing.SwingUtilities.invokeAndWait;
import static javax.swing.SwingUtilities.isEventDispatchThread;

Expand Down Expand Up @@ -501,6 +502,7 @@ private static JTextComponent configurePlainText(String instructions,
JTextArea text = new JTextArea(instructions, rows, columns);
text.setLineWrap(true);
text.setWrapStyleWord(true);
text.setBorder(createEmptyBorder(4, 4, 4, 4));
return text;
}

Expand Down

1 comment on commit f63b702

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.