FormBuilder: allow to add a component without label which occupies all available...
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Fri, 7 Aug 2015 14:39:10 +0000 (17:39 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Fri, 7 Aug 2015 14:39:42 +0000 (17:39 +0300)
platform/platform-api/src/com/intellij/util/ui/FormBuilder.java

index 056d3f29fd82635092411506d84e1441e8573c1d..0aa84b5c796290bcd394992947cf61f68a680e5d 100644 (file)
@@ -106,6 +106,11 @@ public class FormBuilder {
     return addLabeledComponent((JLabel)null, component, topInset, false);
   }
 
+  @NotNull
+  public FormBuilder addComponent(@NotNull JComponent component, int topInset, boolean fillVertically) {
+    return addLabeledComponent(null, component, topInset, false, fillVertically);
+  }
+
   public FormBuilder addSeparator(final int topInset) {
     return addComponent(new JSeparator(), topInset);
   }