protected int createShowTextDialog(final String title, final String text,
final String confirmationText, final boolean query_or_n3) {
final JPanel panel = new JPanel();
final ConfirmationDialog dialog = new ConfirmationDialog(null, panel, title, confirmationText);
dialog.addKeyListener(this.getKeyListener(dialog));
final LuposDocument document = new LuposDocument();
final JTextPane tp = new LuposJTextPane(document);
document.init((query_or_n3) ? SPARQLParser.createILuposParser(new LuposDocumentReader(document)):TurtleParser.createILuposParser(new LuposDocumentReader(document)), false);
tp.addKeyListener(this.getKeyListener(dialog));
tp.setFont(new Font("Courier New", Font.PLAIN, 12));
tp.setEditable(false);
tp.setText(text);
new LinePainter(tp, new Color(202, 223, 245));
final JScrollPane scroll = new JScrollPane(tp);
// create main panel and add components to it...
panel.setLayout(new BorderLayout());
panel.add(scroll, BorderLayout.CENTER);
dialog.setVisible(true);
return dialog.getReturnValue();
}