Skip to content

Commit

Permalink
minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
azvegint committed Mar 13, 2024
1 parent 4bf3d76 commit c09f494
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/jdk/java/awt/Frame/GetBoundsResizeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ public static void main(String[] args) throws Exception {
robot.delay(500);

EventQueue.invokeAndWait(() ->
textArea
.append("Original Frame.getBounds() = %s\n"
.formatted(frame.getBounds())));
textArea.append("Original Frame.getBounds() = %s\n"
.formatted(frame.getBounds())));

passFailJFrame.awaitAndCheck();
}
Expand All @@ -83,13 +82,12 @@ private static Frame getFrame() {

Button button = new Button("Press");
button.addActionListener((e) ->
textArea
.append("Current Frame.getBounds() = %s\n"
.formatted(frame.getBounds())));
textArea.append("Current Frame.getBounds() = %s\n"
.formatted(frame.getBounds())));

frame.add(button);
frame.pack();

return frame;
}
}
}

0 comments on commit c09f494

Please sign in to comment.