#Why aren't my dialog boxes working on eclipse?
1 messages · Page 1 of 1 (latest)
Can you show us what it says when you pass your cursor on function?
I think so
its saying that its undefined for the statement
would it work if I made a string first?
and then added it
The calling should be correct
JOptionPage showInputDialog
static String showInputDialog(Object message)
Shows a question-message dialog requesting input from the user.
static String showInputDialog(Object message, Object initialSelectionValue)
Shows a question-message dialog requesting input from the user, with the input value initialized to initialSelectionValue.
Yea the import isn't working for some reason
im using jdk17
you need to define a module that requires the desktop module in jdk9+
so that jlink links your code with javax swing
and cast your String as Object
to match the static method signature