JComponent () { myModules.fillModules(myPRC.getProject(), PluginModuleType.getInstance()); JPanel wholePanel = new JPanel(new GridBagLayout()); myVMParameters.setText(DevKitBundle.message("vm.parameters")); myVMParameters.setComponent(new RawCommandLineEditor()); myVMParameters.getComponent().setDialogCaption(myVMParameters.getRawText()); myVMParameters.setLabelLocation(BorderLayout.WEST); myVMParameters.setAnchor(myModuleLabel); myProgramParameters.setText(DevKitBundle.message("program.parameters")); myProgramParameters.setComponent(new RawCommandLineEditor()); myProgramParameters.getComponent().setDialogCaption(myProgramParameters.getRawText()); myProgramParameters.setLabelLocation(BorderLayout.WEST); myProgramParameters.setAnchor(myModuleLabel); GridBagConstraints gc = new GridBagConstraints(0, GridBagConstraints.RELATIVE, 2, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, JBUI.insets(2, 0, 0, 0), UIUtil.DEFAULT_HGAP, 0); wholePanel.add(myVMParameters, gc); wholePanel.add(myProgramParameters, gc); gc.gridwidth = 1; gc.gridy = 3; gc.weightx = 0; wholePanel.add(myModuleLabel, gc); gc.gridx = 1; gc.weightx = 1; wholePanel.add(myModules, gc); gc.gridx = 0; gc.gridy = 4; gc.gridwidth = 2; wholePanel.add(myJrePathEditor, gc); gc.weighty = 1; gc.gridy = 5; wholePanel.add(Box.createVerticalBox(), gc); return wholePanel; }