Hello I've problem in reloading JDialog
.
I've 2 JRadioButton:
- Not defined
- Defined in first row
When I click a button, a dialog will appear, it's content will depend on the radio button. If I choose the first one it will display "Hello World!", but if I choose the second will display "Hello Community!". But the dialog won't change, just display the content based on what I choose first.
Here is my button action:
txtResult.setText(radioOption.getSelectedItem().toString());
JDialog jd = new JDialog();
jd.setSize(600,400);
jd.setVisible(true);