JPanel () { JPanel defaultPanel = new JPanel(new BorderLayout()); defaultPanel.add(myUseDefaultShelfDirectory, BorderLayout.WEST); JLabel infoLabel = new JLabel(getDefaultShelfPresentationPath(myProject)); infoLabel.setBorder(null); infoLabel.setForeground(JBColor.GRAY); defaultPanel.add(infoLabel, BorderLayout.CENTER); return defaultPanel; }