W2R3 – Update the JRadioButton name
This commit is contained in:
1 parent
463edee561
commit
569f06ed75
1 file changed
+4
-7
@@ -15,7 +15,7 @@ import java.awt.event.*;
|
|||||||
* This might be useful for defining you Main App Viewer e.g. a JFrame
|
* This might be useful for defining you Main App Viewer e.g. a JFrame
|
||||||
*/
|
*/
|
||||||
public class MainViewer {
|
public class MainViewer {
|
||||||
private JFrame viewer;
|
public JFrame viewer;
|
||||||
|
|
||||||
public int a = 3; // this represents a value that is to declare how many rows are to be made
|
public int a = 3; // this represents a value that is to declare how many rows are to be made
|
||||||
|
|
||||||
@@ -42,12 +42,9 @@ public class MainViewer {
|
|||||||
|
|
||||||
System.out.println("Row number: "+ row + " Has been created!");
|
System.out.println("Row number: "+ row + " Has been created!");
|
||||||
|
|
||||||
ActionListener EditListener = new ActionListener() {
|
ActionListener EditListener = e -> {
|
||||||
@Override
|
System.out.println("Edit Button clicked for Row: " + row + " with Radio Button Text as: " + JR.getText());
|
||||||
public void actionPerformed(ActionEvent e) {
|
DialogueBox(JR.getText(), JR);
|
||||||
System.out.println("Edit Button clicked for Row: " + row + " with Radio Button Text as: " + JR.getText());
|
|
||||||
DialogueBox(JR.getText(), JR);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
JEdit.addActionListener(EditListener);
|
JEdit.addActionListener(EditListener);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user