diff --git a/src/main/java/userprofilebuilder/view/MainViewer.java b/src/main/java/userprofilebuilder/view/MainViewer.java index ea4a55c..e394fc2 100644 --- a/src/main/java/userprofilebuilder/view/MainViewer.java +++ b/src/main/java/userprofilebuilder/view/MainViewer.java @@ -19,7 +19,7 @@ public class MainViewer { public int a = 3; // this represents a value that is to declare how many rows are to be made - private void CreateRow(int count, JPanel jp) // Function to create a row // holds all the data of a row in the grid layout below. + private void CreateRow(int count, JPanel jp, String Pname) // Function to create a row // holds all the data of a row in the grid layout below. { int row = count+1; @@ -42,13 +42,13 @@ public class MainViewer { System.out.println("Row number: "+ row + " Has been created!"); ActionListener EditListener = e -> { - System.out.println("Edit Button clicked for Row: " + row + "\n- with Radio Button Text as: " + JR.getText()); + System.out.println("Edit Button clicked for Row: " + row + "\n- with Radio Button Text as: " + JR.getText() + "\n- For tab: " + Pname); DialogueBox(JR.getText(), JR, row); }; JEdit.addActionListener(EditListener); ActionListener RadioListener = e -> { - System.out.println("Radio Button toggled for Row: " + row + "\n- with Radio Button Text as: " + JR.getText() + "\n- With state of radio button changed to: " + JR.isSelected()); + System.out.println("Radio Button toggled for Row: " + row + "\n- with Radio Button Text as: " + JR.getText() + "\n- With state of radio button changed to: " + JR.isSelected() + "\n- For tab: " + Pname); }; JR.addActionListener(RadioListener); @@ -102,7 +102,7 @@ public class MainViewer { for (int i=0; i