Package org.jdesktop.swingx

Examples of org.jdesktop.swingx.JXEditorPane$CaretHandler


        reportButton = new EqualSizeJButton(pane.getActionMap().get(JXErrorPane.REPORT_ACTION_KEY));

        detailButton = new EqualSizeJButton(UIManagerExt.getString(
                CLASS_NAME + ".details_expand_text", errorMessage.getLocale()));

        details = new JXEditorPane();
        details.setContentType("text/html");
        details.putClientProperty(JXEditorPane.HONOR_DISPLAY_PROPERTIES, Boolean.TRUE);
        details.setTransferHandler(createDetailsTransferHandler(details));
        detailsScrollPane = new JScrollPane(details);
        detailsScrollPane.setPreferredSize(new Dimension(10, 250));
View Full Code Here


       
        URL url = XEditorPaneDemo.class.getResource("resources/Bike.html");
        editor = null;
       
        try {
            editor = new JXEditorPane(url);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
//        editor.setEditable(false);
View Full Code Here

     
      // build layout
      header = new YHeader(help.getTitle(), help.getIcon() + "_help");
      add(header, BorderLayout.NORTH);
     
      editor = new JXEditorPane(help.getUrl());
      editor.setEditable(false);
      YRightClickMenuText.install(editor);
     
      add(new JScrollPane(editor), BorderLayout.CENTER);
    } catch (Throwable t) {
      editor = new JXEditorPane();
      editor.setText(t.getClass() + " " + t.getMessage() + " " + Strings.stackStraceAsString(t));
      add(editor);
      YEx.info("Can not display helpfile " + id + " (" + HelpCenterManagement.get(id) + ")", t);
    }
   
View Full Code Here

            CodeFileInfo codeFileInfo = new CodeFileInfo();
            codeFileInfo.url = sourceFile;
            codeFileInfo.styled = loadSourceCode(sourceFile);
            // PENDING JW: implement better unitIncrement - should be one line
            // (that is depend on fontmetrics)
            codeFileInfo.textPane = new JXEditorPane();
            codeFileInfo.textPane.setHighlighter(new SnippetHighlighter());
            makeSelectionTransparent(codeFileInfo.textPane, 180);
            codeFileInfo.veneer = new CodeVeneer(codeFileInfo);
            Stacker layers = new Stacker(codeFileInfo.textPane);
            layers.add(codeFileInfo.veneer, JLayeredPane.POPUP_LAYER);
View Full Code Here

    *
    * @author andreas.gerlach
    */
  private void initializeUI() {

    _editorPane = new JXEditorPane();
    _editorPane.setEditable(false);
    _editorPane.setDoubleBuffered(true);
    _editorPane.setAutoscrolls(false);
   
    DefaultHighlighter highlighter = new DefaultHighlighter();
View Full Code Here

            editorPane.setText("<html>Error 404: couldn't show " + link.getURL() + " </html>");
        }
    }

    protected JXEditorPane createDefaultEditorPane() {
        final JXEditorPane editorPane = new JXEditorPane();
        editorPane.setEditable(false);
        editorPane.setContentType("text/html");
        return editorPane;
    }
View Full Code Here

     * create components we need access to.
     *
     */
    private void initComponents() {
        descriptionContainer = new JXTitledPanel();
        descriptionPane = new JXEditorPane();
        mainContainer = new JXTitledPanel();
        mainList = new JXList();
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.JXEditorPane$CaretHandler

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.