void (@NotNull X509Certificate certificate) { String uniqueName = getCardName(certificate); JPanel infoPanel = new CertificateInfoPanel(certificate); UIUtil.addInsets(infoPanel, UIUtil.PANEL_REGULAR_INSETS); JBScrollPane scrollPane = new JBScrollPane(infoPanel); //scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); myDetailsPanel.add(scrollPane, uniqueName); }