| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.quicksetup.installer.ui; |
| | |
| | | { |
| | | checkBoxPanel.removeAll(); |
| | | GridBagConstraints gbc = new GridBagConstraints(); |
| | | gbc.gridy = 0; |
| | | gbc.fill = GridBagConstraints.BOTH; |
| | | gbc.anchor = GridBagConstraints.NORTH; |
| | | boolean first = true; |
| | |
| | | gbc.gridwidth = GridBagConstraints.RELATIVE; |
| | | JCheckBox cb = hmCheckBoxes.get(suffix.getId()); |
| | | cb.setVerticalAlignment(SwingConstants.TOP); |
| | | gbc.gridx = 0; |
| | | checkBoxPanel.add(cb, gbc); |
| | | gbc.insets.left = UIFactory.LEFT_INSET_PRIMARY_FIELD; |
| | | gbc.weightx = 1.0; |
| | |
| | | |
| | | gbc.insets.top += Math.abs(cb.getPreferredSize().height - |
| | | proto.getPreferredSize().height) / 2; |
| | | gbc.gridx = 1; |
| | | checkBoxPanel.add(l, gbc); |
| | | first = false; |
| | | gbc.gridy ++; |
| | | } |
| | | addVerticalGlue(checkBoxPanel); |
| | | gbc.weighty = 1.0; |
| | | gbc.insets = UIFactory.getEmptyInsets(); |
| | | gbc.fill = GridBagConstraints.VERTICAL; |
| | | checkBoxPanel.add(Box.createVerticalGlue(), gbc); |
| | | } |
| | | |
| | | private String getSuffixString(SuffixDescriptor desc) |