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:
bobbert committed 2025-04-02 13:18:13 +01:00
1 parent 8245777db1
commit 0b66878649
3 files changed
+21 -7

No files matched your search

+1 -1
View File
@@ -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);
}