diff --git a/test/jdk/java/awt/regtesthelpers/PassFailJFrame.java b/test/jdk/java/awt/regtesthelpers/PassFailJFrame.java
index e2693e7c555..17bec86c725 100644
--- a/test/jdk/java/awt/regtesthelpers/PassFailJFrame.java
+++ b/test/jdk/java/awt/regtesthelpers/PassFailJFrame.java
@@ -159,7 +159,7 @@ import static javax.swing.SwingUtilities.isEventDispatchThread;
*
the title of the instruction UI,
* the timeout of the test,
* the size of the instruction UI via rows and columns, and
- * to add a log area,
+ * to add a log area,
* to enable screenshots.
*
*/
@@ -1113,9 +1113,10 @@ public final class PassFailJFrame {
/**
* Adds a {@code message} to the log area, if enabled by
- * {@link Builder#logArea()} or {@link Builder#logArea(int)}.
+ * {@link Builder#logArea() logArea()} or
+ * {@link Builder#logArea(int) logArea(int)}.
*
- * @param message to log
+ * @param message the message to log
*/
public static void log(String message) {
System.out.println("PassFailJFrame: " + message);
@@ -1124,7 +1125,8 @@ public final class PassFailJFrame {
/**
* Clears the log area, if enabled by
- * {@link Builder#logArea()} or {@link Builder#logArea(int)}.
+ * {@link Builder#logArea() logArea()} or
+ * {@link Builder#logArea(int) logArea(int)}.
*/
public static void logClear() {
System.out.println("\nPassFailJFrame: log cleared\n");
@@ -1133,7 +1135,9 @@ public final class PassFailJFrame {
/**
* Replaces the log area content with provided {@code text}, if enabled by
- * {@link Builder#logArea()} or {@link Builder#logArea(int)}.
+ * {@link Builder#logArea() logArea()} or
+ * {@link Builder#logArea(int) logArea(int)}.
+ *
* @param text new text for the log area
*/
public static void logSet(String text) {