JComponent () { createLabel(); JPanel panel = new JPanel(new GridBagLayout()); GridBag gbc = new GridBag(); panel.add(myIconLabel, gbc.next()); panel.add(myTextLabel, gbc.next()); panel.add(myShortcutLabel, gbc.next()); panel.add(myInfoLabel, gbc.next().weightx(1)); return layoutComponent(panel); }