JComponent () { if (myRCStorageUi == null) return myConfigurationEditor.getComponent(); JPanel panel = new JPanel(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.gridx = 0; c.gridy = 0; c.anchor = GridBagConstraints.EAST; c.insets = JBUI.insets(5, 0, 5, 0); c.fill = GridBagConstraints.NONE; c.weightx = 0; c.weighty = 0; panel.add(myRCStorageUi.createComponent(), c); c.gridx = 0; c.gridy = 1; c.anchor = GridBagConstraints.NORTH; c.insets = JBInsets.emptyInsets(); c.fill = GridBagConstraints.HORIZONTAL; c.weightx = 1; c.weighty = 0; JPanel comp = new JPanel(new GridBagLayout()); myRunOnTargetPanel.buildUi(comp, null); panel.add(comp, c); c.gridx = 0; c.gridy = 2; c.anchor = GridBagConstraints.NORTH; c.insets = JBInsets.emptyInsets(); c.fill = GridBagConstraints.BOTH; c.weightx = 1; c.weighty = 1; panel.add(myConfigurationEditor.getComponent(), c); return panel; }