JComponent () { JPanel wholePanel = new JPanel(new GridBagLayout()); final GridBag constraint = new GridBag() .setDefaultWeightX(1.0) .setDefaultWeightY(1.0) .setDefaultFill(GridBagConstraints.BOTH); myDenyRulesModel = new MyTableModel(new ColumnInfo[]{DENY_USAGES_OF, DENY_USAGES_IN}, true); myDenyRulesModel.setSortable(false); myAllowRulesModel = new MyTableModel(new ColumnInfo[]{ALLOW_USAGES_OF, ALLOW_USAGES_ONLY_IN}, false); myAllowRulesModel.setSortable(false); myDenyTable = new TableView<>(myDenyRulesModel); myAllowTable = new TableView<>(myAllowRulesModel); mySkipImports = new JCheckBox(CodeInsightBundle.message("skip.import.statements.checkbox.title")); wholePanel.add(createRulesPanel(myDenyTable), constraint.nextLine()); wholePanel.add(createRulesPanel(myAllowTable), constraint.nextLine().insets(UIUtil.LARGE_VGAP, 0, UIUtil.DEFAULT_VGAP, 0)); wholePanel.add(mySkipImports, constraint.nextLine().weighty(0)); wholePanel.setMinimumSize(new Dimension(400, 400)); return wholePanel; }