Java – update joptionpane to reflect component state changes
In my GUI project, there is a method to display a joptionpane containing multiple components. Two components are buttongroups, and each component has two jradiobuttons. The first button is selected by default in the first group, and the second button is selected in the second group. By default, in the second group, I want to disable the first button until the second button in the first group is selected, That is, if users are satisfied with the default selection in BG1, they cannot make a selection in BG2. Only if they make a second selection in BG1, they can choose other options in BG2
Can this behavior be achieved using joptionpane?
I've been looking at jdialog, joptionpane and other research tutorials, but none of them have proved useful in this case If someone can give me some direction, there may be a great solution
Solution
I don't think it has anything to do with joption But I think jdialog is feasible
examble:
When you open the dialog box, you can use the command JFrame (here you must write your window name) enable(false)
You can make it have a close button in the counter. You can have a check box when the check box is true It will display a button, which can be made invisible when you click it