Skip to content

Commit cf845a7

Browse files
Remove unexpected reverse of button order in method select
1 parent f65e99e commit cf845a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/introprog/Dialog.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ object Dialog:
4040
scala.util.Try{
4141
val chosenIndex =
4242
JOptionPane.showOptionDialog(null, message, title, JOptionPane.DEFAULT_OPTION,
43-
JOptionPane.QUESTION_MESSAGE, null, buttons.reverse.toArray, null)
43+
JOptionPane.QUESTION_MESSAGE, null, buttons.toArray, null)
4444
buttons(buttons.length - 1 - chosenIndex)
4545
}.getOrElse("")
4646

0 commit comments

Comments
 (0)