c.gridy = 3;
c.gridy = 5;
	private void setupComponents() throws XMLDBException {		GridBagLayout grid = new GridBagLayout();		getContentPane().setLayout(grid);		GridBagConstraints c = new GridBagConstraints();		c.insets = new Insets(5, 5, 5, 5);		JLabel label = new JLabel("Resource:");		c.gridx = 0;		c.gridy = 0;		c.anchor = GridBagConstraints.WEST;		c.fill = GridBagConstraints.NONE;		grid.setConstraints(label, c);		getContentPane().add(label);		label = new JLabel(resource);		c.gridx = 1;		c.gridy = 0;		c.anchor = GridBagConstraints.EAST;		c.fill = GridBagConstraints.HORIZONTAL;		grid.setConstraints(label, c);		getContentPane().add(label);		label = new JLabel("Owner");		c.gridx = 0;		c.gridy = 1;		c.anchor = GridBagConstraints.WEST;		c.fill = GridBagConstraints.NONE;		grid.setConstraints(label, c);		getContentPane().add(label);		Vector ol = new Vector();		User users[] = service.getUsers();		for(int i = 0; i < users.length; i++) {			ol.addElement(users[i].getName());		}		owners = new JComboBox(ol);		owners.setSelectedItem(permissions.getOwner());		c.gridx = 1;		c.gridy = 1;		c.anchor = GridBagConstraints.EAST;		c.fill = GridBagConstraints.HORIZONTAL;		grid.setConstraints(owners, c);		getContentPane().add(owners);		label = new JLabel("Group");		c.gridx = 0;		c.gridy = 2;		c.anchor = GridBagConstraints.WEST;		c.fill = GridBagConstraints.NONE;		grid.setConstraints(label, c);		getContentPane().add(label);		Vector gl = new Vector();		String allGroups[] = service.getGroups();		for(int i = 0; i < allGroups.length; i++)			gl.addElement(allGroups[i]);		groups = new JComboBox(gl);		groups.setSelectedItem(permissions.getOwnerGroup());		c.gridx = 1;		c.gridy = 2;		c.anchor = GridBagConstraints.EAST;		c.fill = GridBagConstraints.HORIZONTAL;		grid.setConstraints(groups, c);		getContentPane().add(groups);		JComponent pc = setupPermissions();		c.gridx = 0;		c.gridy = 3;		c.gridwidth = 2;		c.anchor = GridBagConstraints.EAST;		c.fill = GridBagConstraints.HORIZONTAL;		grid.setConstraints(pc, c);		getContentPane().add(pc);				Box buttonBox = Box.createHorizontalBox();				JButton button = new JButton("Apply");		button.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) {				applyAction();			}		});		buttonBox.add(button);		button = new JButton("Cancel");		button.addActionListener(new ActionListener() {					public void actionPerformed(ActionEvent e) {						cancelAction();					}				});		buttonBox.add(button);				c.gridx = 1;		c.gridy = 4;		c.gridwidth = 1;		c.anchor = GridBagConstraints.EAST;		c.fill = GridBagConstraints.NONE;		grid.setConstraints(buttonBox, c);		getContentPane().add(buttonBox);	}