JComponent () { JPanel panel = new JPanel(new GridBagLayout()); GridBag gb = new GridBag() .setDefaultInsets(JBUI.insets(0, 0, DEFAULT_VGAP, DEFAULT_HGAP)) .setDefaultWeightX(1) .setDefaultFill(GridBagConstraints.HORIZONTAL); JComponent mappingsTable = createMappingsTable(); // don't start loading automatically myLoadingPanel = new JBLoadingPanel(new BorderLayout(), this, POSTPONE_MAPPINGS_LOADING_PANEL * 2); myLoadingPanel.add(mappingsTable); panel.add(myLoadingPanel, gb.nextLine().next().fillCell().weighty(1.0)); panel.add(createProjectMappingDescription(), gb.nextLine().next()); if (!AbstractCommonUpdateAction.showsCustomNotification(asList(myVcsManager.getAllActiveVcss()))) { panel.add(myScopeFilterConfig.createComponent(), gb.nextLine().next()); } return panel; }