Skip to content

Commit bb73f4c

Browse files
committed
SwingDialog: clean up dialog disposal comment
1 parent 2439a55 commit bb73f4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/scijava/ui/swing/SwingDialog.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@ public int show() {
267267
}
268268
dialog.setVisible(true);
269269

270-
// NB: surprisingly explicit dispose() required for modal dialogs to not
271-
// hang up program exit. and even more surprising that it's not needed for
272-
// modeless cases (like B&C). But testing bears this out.
270+
// NB: Surprisingly, an explicit dispose() is required for modal dialogs
271+
// to not hang up program exit. Even more surprisingly, it's not needed
272+
// for modeless cases (like B&C).
273273

274274
// clean up the dialog afterwards
275275
if (modal) dialog.dispose();

0 commit comments

Comments
 (0)