W2R3 – Update the JRadioButton name - updated code. fixed using lambda for action listener on edit button and changed jframe to public to get rid of warnings.
This commit is contained in:
1 parent
d5168f01f4
commit
f2ea5de2da
1 file changed
+2
-1
@@ -74,9 +74,10 @@ public class MainViewer {
|
|||||||
|
|
||||||
if (choice == JOptionPane.OK_OPTION)
|
if (choice == JOptionPane.OK_OPTION)
|
||||||
{
|
{
|
||||||
System.out.println("OK option pressed.");
|
System.out.println("OK option pressed and set text to: " + JT.getText());
|
||||||
JR.setText(JT.getText());
|
JR.setText(JT.getText());
|
||||||
} else if (choice == JOptionPane.CANCEL_OPTION) {
|
} else if (choice == JOptionPane.CANCEL_OPTION) {
|
||||||
|
System.out.println("Cancel option pressed.");
|
||||||
dialog.dispose();
|
dialog.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user