Sorry about the previous iteration not working so well. 😓
At any rate, I believe this commit should be working as expected. For the sake of completeness, here's the commit message:
The new showOkCancelDialog method now has a parameter named dialogPrefSize.
If the value is non-null, the dialog will use dialogPrefSize as its preferred size. If the value is null, we rely on the wisdom of pack() (which is the original behavior of showOkCancelDialog).
Sorry about the previous iteration not working so well. 😓
At any rate, I believe this commit should be working as expected. For the sake of completeness, here's the commit message:
The new
showOkCancelDialog
method now has a parameter nameddialogPrefSize
.If the value is non-null, the dialog will use dialogPrefSize as its preferred size. If the value is null, we rely on the wisdom of
pack()
(which is the original behavior of showOkCancelDialog).