Hello everyone, I haven't been on this forum in quite a while, and well I need a little help. I have to display a dialog box where the user has to choose one of two options that are possible. I am using a JOptionPane with two JRadioButtons in a ButtonGroup. I am succesful in displaying the dialog and everything, but I can't figure out a way to get the values of the radio buttons after the user chooses the options and presses ok.

Thanks in advance