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

sorry i didnt look hard enough, i found my answer

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);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.