final double border = 5;
final double rowsGap = 5;
final double colsGap = 10;
final double[][] size = {{border, TableLayout.FILL, border}, // Columns
{border, TableLayout.PREFERRED, rowsGap, TableLayout.PREFERRED, rowsGap, TableLayout.PREFERRED, rowsGap, TableLayout.FILL, 15, 0, border}};// Rows
final TableLayout tbl = new TableLayout(size);
final Container mainPanel = new JPanel(tbl);
mainPanel.add(new JLabel("Disabled detectors will not participate in the analysis."), "1, 1, 1, 1");
mainPanel.add(new JLabel("'Grayed out' detector will run, however they will not report any result to the UI."), "1, 3, 1, 3");
final Container checkboxPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
checkboxPanel.add(getHiddenCheckBox());
checkboxPanel.add(getEnableAllBox());
mainPanel.add(checkboxPanel, "1, 5, 1, 5");
final double[][] size1 = {{TableLayout.FILL}, // Columns
{TableLayout.FILL}};// Rows
final TableLayout tableLayout = new TableLayout(size1);
final JPanel detectorPanel = new JPanel(tableLayout);
detectorPanel.add(ScrollPaneFacade.createScrollPane(getDetectorsTable(), JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED), "0, 0, 0, 0");
//mainPanel.add(detectorPanel, "1, 7, 1, 7");
final JComponent scrollPane = ScrollPaneFacade.createScrollPane(getTextArea(), JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);