JComponent () { JPanel panel = new JPanel(new GridBagLayout()); GridBagConstraints gbConstraints = new GridBagConstraints(); gbConstraints.insets = JBUI.insetsBottom(UIUtil.DEFAULT_VGAP); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.weightx = 1; gbConstraints.weighty = 1; gbConstraints.anchor = GridBagConstraints.WEST; final SimpleColoredComponent coloredComponent = new SimpleColoredComponent(); coloredComponent.setIpad(JBInsets.emptyInsets()); coloredComponent.setMyBorder(null); configureLabelComponent(coloredComponent); panel.add(coloredComponent, gbConstraints); return panel; }