code: public static void showTextInPopup(Component component, String title, String text) {
  		final JTextArea textArea = new JTextArea();
  		textArea.setText(text);
  		textArea.setEditable(false);
  		textArea.setCaretPosition(0);
  		// background nécessaire avec la plupart des look and feels dont Nimbus,
  		// sinon il reste blanc malgré editable false
  		textArea.setBackground(Color.decode("#E6E6E6"));
  		final JScrollPane scrollPane = new JScrollPane(textArea);
  
  		final JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT, 0, 5));
  		final MButton clipBoardButton = new MButton(
  				I18NAdapter.getString("Copier_dans_presse-papiers"));
  		clipBoardButton.addActionListener(new ActionListener() {
  			@Override
  			public void actionPerformed(ActionEvent e) {
  				textArea.selectAll();
  				textArea.copy();
  				textArea.setCaretPosition(0);
  			}
  		});
  		buttonPanel.setOpaque(false);
  		buttonPanel.add(clipBoardButton);
  
  		final Window window = SwingUtilities.getWindowAncestor(component);
  		final JDialog dialog = new JDialog((JFrame) window, title, true);
  		final JPanel contentPane = new JPanel(new BorderLayout());
  		contentPane.add(scrollPane, BorderLayout.CENTER);
  		contentPane.add(buttonPanel, BorderLayout.SOUTH);
  		dialog.setContentPane(contentPane);
  		dialog.pack();
  		dialog.setLocationRelativeTo(window);
  		dialog.setVisible(true);
  	}
docs: Affiche un texte scrollable non éditable dans une popup.
  @param component Parent
  @param title Titre de la popup
  @param text Texte