void () { myInitialParameterInfos = getParameterInfos(getChosenParameters()); if (myParamTable != null) { myCenterPanel.remove(myParamTable); } myParamTable = createParameterTableComponent(); myParamTable.setMinimumSize(JBUI.size(500, 100)); myCenterPanel.add(myParamTable, BorderLayout.CENTER); final JTable table = UIUtil.findComponentOfType(myParamTable, JTable.class); final TitledSeparator separator = SeparatorFactory.createSeparator(JavaRefactoringBundle.message("extract.method.dialog.separator.parameters"), table); myCenterPanel.add(separator, BorderLayout.NORTH); if (table != null) { table.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEvent e) { if (table.getRowCount() > 0) { final int col = table.getSelectedColumn(); final int row = table.getSelectedRow(); if (col == -1 || row == -1) { table.getSelectionModel().setSelectionInterval(0, 0); table.getColumnModel().getSelectionModel().setSelectionInterval(0, 0); } } } }); } }