JComponent () { Icon appIcon = AppUIUtil.loadApplicationIcon(ScaleContext.create(), 60); Box box = getText(); JLabel icon = new JLabel(appIcon); icon.setVerticalAlignment(SwingConstants.TOP); icon.setBorder(JBUI.Borders.empty(20, 12, 0, 24)); box.setBorder(JBUI.Borders.empty(20,0,0,20)); return JBUI.Panels.simplePanel() .addToLeft(icon) .addToCenter(box); }