private void initComponents(Object[][] data) { String[] columnList = JTableUtils.getLogFileColumnHeaders(); logFileTable = new ConfigurationTable(data, columnList, JTableUtils.getLogFileColumnTypes()); logFileTable.setColumnSelectionAllowed(true); logFileTable.getTableHeader().setReorderingAllowed(false); logFileTable.setRowSelectionAllowed(true); logFileTable.setColumnSelectionAllowed(false); logFileTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); logFileTable .getSelectionModel() .addListSelectionListener(new RowSelectionListener(logFileTable)); logFileTableScroller = new JScrollPane(); logFileTableScroller.setViewportView(logFileTable); GroupLayout layout = new GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout .createParallelGroup(GroupLayout.Alignment.LEADING) .addComponent(logFileTableScroller, GroupLayout.DEFAULT_SIZE, 410, Short.MAX_VALUE)); layout.setVerticalGroup( layout .createParallelGroup(GroupLayout.Alignment.LEADING) .addComponent(logFileTableScroller, GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)); }