diff --git a/src/main/java/userprofilebuilder/view/MainViewer.java b/src/main/java/userprofilebuilder/view/MainViewer.java index acf3bb2..8e387ce 100644 --- a/src/main/java/userprofilebuilder/view/MainViewer.java +++ b/src/main/java/userprofilebuilder/view/MainViewer.java @@ -34,7 +34,7 @@ public class MainViewer { JRadioButton JR = new JRadioButton(name); // temporary use of name as label for JRadioButton - to allow for the use of text being manipulated // changed. JButton JEdit = new JButton("Edit"); JButton JDelete = new JButton("Delete"); - + jp.add(JR); jp.add(JEdit); jp.add(JDelete); @@ -74,9 +74,10 @@ public class MainViewer { 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()); } else if (choice == JOptionPane.CANCEL_OPTION) { + System.out.println("Cancel option pressed."); dialog.dispose(); }