buttonPanel.add(Box.createHorizontalStrut(250));
buttonPanel.add(Box.createHorizontalStrut(100)); buttonPanel.add(setDefaultBtn); buttonPanel.add(Box.createHorizontalStrut(50));
    void buildUI() {        JPanel panel = new JPanel();        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));        panel.add(createLabelText(groupNameLabel, groupName, 20));        panel.add(Box.createRigidArea(new Dimension(5, 5)));        panel.add(createLabelText(descriptionLabel, description, 60));        JPanel buttonPanel = new JPanel();        buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));        buttonPanel.add(Box.createHorizontalStrut(250));        buttonPanel.add(saveBtn);        panel.add(buttonPanel);        panel.add(Box.createVerticalStrut(50));        JPanel userGroupListButtonPanel = new JPanel();        userGroupListButtonPanel.setLayout(new BoxLayout(                userGroupListButtonPanel, BoxLayout.Y_AXIS));        userGroupListButtonPanel.add(addUserBtn);        userGroupListButtonPanel.add(removeUserBtn);        JPanel userGroupPanel = new JPanel();        userGroupPanel                .setLayout(new BoxLayout(userGroupPanel, BoxLayout.Y_AXIS));        userGroupPanel.add(userGroupListLabel);        userGroupPanel.add(groupMembershipList);        JPanel userGroupListPanel = new JPanel();        userGroupListPanel.setLayout(new BoxLayout(userGroupListPanel,                BoxLayout.X_AXIS));        userGroupListPanel.add(userGroupListButtonPanel);        userGroupListPanel.add(userGroupPanel);        JPanel infoPanel = new JPanel();        infoPanel.setLayout(new BoxLayout(infoPanel, BoxLayout.Y_AXIS));        infoPanel.add(panel);        infoPanel.add(userGroupListPanel);        JPanel groupListPanel = new JPanel();        groupListPanel                .setLayout(new BoxLayout(groupListPanel, BoxLayout.Y_AXIS));        groupListPanel.add(groupListLabel);        groupListPanel.add(groupList);        JPanel groupListButtonPanel = new JPanel();        groupListButtonPanel.setLayout(new BoxLayout(groupListButtonPanel,                BoxLayout.Y_AXIS));        groupListButtonPanel.add(addGroupBtn);        // groupListButtonPanel.add(removeGroupBtn);        JPanel groupPanel = new JPanel();        groupPanel.setLayout(new BoxLayout(groupPanel, BoxLayout.X_AXIS));        groupPanel.add(groupListButtonPanel);        groupPanel.add(Box.createHorizontalStrut(20));        groupPanel.add(groupListPanel);        JPanel usersPanel = new JPanel();        usersPanel.setLayout(new BoxLayout(usersPanel, BoxLayout.Y_AXIS));        usersPanel.add(userListLabel);        usersPanel.add(userList);        JPanel spacerPanel = new JPanel();        spacerPanel.setLayout(new BoxLayout(spacerPanel, BoxLayout.X_AXIS));        spacerPanel.add(Box.createHorizontalStrut(60));        spacerPanel.add(usersPanel);        JPanel listContainer = new JPanel();        listContainer.setLayout(new BoxLayout(listContainer, BoxLayout.Y_AXIS));        listContainer.add(groupPanel);        listContainer.add(spacerPanel);        JPanel container = new JPanel();        container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS));        container.add(listContainer);        container.add(Box.createHorizontalStrut(50));        container.add(infoPanel);        container.add(Box.createHorizontalStrut(10));        this.setLayout(new BorderLayout());        this.add(container);    }