0

how would i display a yes/no dialog that would return one value if the user clicks yes and another value if they click no. I know you can do it using some part of JOptionPane but im not sure what

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by BestJewSinceJC
0

Try to post things when you figure them out so that other people can see them. Not a big deal, just saying.

final JOptionPane optionPane = new JOptionPane(
    "Yes or no?",
    JOptionPane.QUESTION_MESSAGE,
    JOptionPane.YES_NO_OPTION);
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.