Created a proper UserGroup class with attributes to get all users from array list so that the populate panel function can go through all users and populate the panels based on the total number of users
This commit is contained in:
1 parent
8245777db1
commit
0b66878649
3 files changed
+21
-7
No files matched your search
@@ -66,7 +66,7 @@ public class MainViewer {
|
||||
String panelName = panel.getName();
|
||||
|
||||
for (User user : UserGroup.getUsers()) {
|
||||
JRadioButton radioButton = new JRadioButton(getUserAttribute(user, panelName));
|
||||
JRadioButton radioButton = new JRadioButton(user.getUserAttribute(panelName));
|
||||
group.add(radioButton);
|
||||
panel.add(radioButton);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user