Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
azvegint committed Mar 12, 2024
1 parent a9f8e21 commit 58e3d73
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/jdk/java/awt/FileDialog/MultipleMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class MultipleMode {

private static final String INSTRUCTIONS =
"""
1. Turn the 'multiple' checkbox off and press the 'open' button
1. Verify that the 'multiple' checkbox is off and press the 'open' button
2. Verify that the file dialog doesn't allow the multiple file selection
3. Select any file and close the file dialog
4. The results will be displayed, verify the results
Expand All @@ -61,17 +61,18 @@ public static void main(String[] args) throws Exception {
.instructions(INSTRUCTIONS)
.rows(15)
.columns(40)
.position(PassFailJFrame.Position.TOP_LEFT_CORNER)
.testUI(MultipleMode::init)
.build()
.awaitAndCheck();
}

private static Frame init() {
Frame frame = new Frame("MultipleMode");
TextArea sysout = new TextArea("", 20, 80);
TextArea sysout = new TextArea("", 20, 70);
sysout.setEditable(false);

final Checkbox mode = new Checkbox("multiple", true);
final Checkbox mode = new Checkbox("multiple", false);

Button open = new Button("open");
open.addActionListener(e -> {
Expand Down

0 comments on commit 58e3d73

Please sign in to comment.