Package lupos.gui.operatorgraph.visualeditor.util

Examples of lupos.gui.operatorgraph.visualeditor.util.ConfirmationDialog


  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();
  }
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.visualeditor.util.ConfirmationDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.