//
ArrayList<DocSearcherIndex> cdIdxsArray = monitor.getCdArrayList();
int numCDIdxs = cdIdxsArray.size();
idxsPanels = new JPanel[numCDIdxs];
cdIdxs = new JCheckBox[numCDIdxs];
DocSearcherIndex di;
//
GridBagLayout gridbaglayout = new GridBagLayout();
GridBagConstraints gridbagconstraints = new GridBagConstraints();
//
cdIdxsPanel.setLayout(new GridLayout(1, numCDIdxs));
gridbaglayout = new GridBagLayout();
gridbagconstraints = new GridBagConstraints();
cdIdxsPanel.setLayout(gridbaglayout);
//
for (int i = 0; i < numCDIdxs; i++) {
di = cdIdxsArray.get(i);
cdIdxs[i] = new JCheckBox(di.getDescription());
idxsPanels[i] = new JPanel();
idxsPanels[i].add(cdIdxs[i]);
//
gridbagconstraints.fill = 1;
gridbagconstraints.insets = new Insets(1, 1, 1, 1);