Package javax.swing

Examples of javax.swing.JEditorPane$PageLoader


  protected void init()
  {
    setTitle(UtilMessages.getInstance().getString("SystemInformationDialog.Title"));

    editorPane = new JEditorPane();
    editorPane.setEditable(false);
    editorPane.setContentType("text/html");//NON-NLS
    editorPane.setText(getSystemInformationAsHTML());
    final HTMLDocument htmlDocument = (HTMLDocument) editorPane.getDocument();
    htmlDocument.getStyleSheet().addRule("body { font-family:sans-serif; }");//NON-NLS
View Full Code Here


      return "MigrateReportTask.MigrateConfirmationDialog"; // NON-NLS
    }

    protected Component createContentPane()
    {
      final JEditorPane textArea = new JEditorPane();
      textArea.setEditable(false);
      textArea.setBackground(new Color(0, 0, 0, 0));
      textArea.setOpaque(false);
      textArea.setEditorKit(new HTMLEditorKit());
      textArea.setText(Messages.getString("MigrateReportTask.Message",
          ClassicEngineBoot.printVersion(ClassicEngineBoot.computeCurrentVersionId())));

      final JPanel panel = new JPanel(new BorderLayout());
      panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
      panel.add(textArea);
View Full Code Here

  {
    final JPanel content = new JPanel(new BorderLayout());
    content.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

    final InternalDemoHandler demoHandler = getDemoHandler();
    final JEditorPane editorPane = new JEditorPane();
    final URL url = demoHandler.getDemoDescriptionSource();
    editorPane.setEditable(false);
    editorPane.setPreferredSize(new Dimension(400, 200));
    if (url != null)
    {
      try
      {
        editorPane.setPage(url);
      }
      catch (IOException e)
      {
        editorPane.setText("Unable to load the demo description. Error: " + e.getMessage());
      }
    }
    else
    {
      editorPane.setText("Unable to load the demo description. No such resource.");
    }

    final JScrollPane scroll = new JScrollPane(editorPane,
        JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
View Full Code Here

    return externalHandlerArea;
  }

  protected JComponent createDescriptionTextPane(final URL url)
  {
    final JEditorPane editorPane = new JEditorPane();
    editorPane.setEditable(false);
    editorPane.setPreferredSize(new Dimension(400, 200));
    if (url != null)
    {
      try
      {
        editorPane.setPage(url);
      }
      catch (IOException e)
      {
        logger.error("Failed to load demo description", e);
        editorPane.setText("Unable to load the demo description. Error: " + e
            .getMessage());
      }
    }
    else
    {
      editorPane.setText(
          "Unable to load the demo description. No such resource.");
    }

    return new JScrollPane(editorPane,
        JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
View Full Code Here

  {
    messages = Messages.getInstance();
    contentpane = new JPanel();
    contentpane.setLayout(new VerticalLayout());

    helpPane = new JEditorPane();
    helpPane.setEditable(false);
    helpPane.setEditorKit(new HTMLEditorKit());
    helpPane.setPreferredSize(new Dimension(600, 100));

    final JPanel toolbar = new JPanel();
View Full Code Here

    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        try{
            jEditorPane1 = new JEditorPane(getClass().getResource("/com/help/Help.html").toURI().toURL());
        }catch(Exception ex){
            ex.printStackTrace();
        }

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
View Full Code Here

  private JEditorPane htmlPane;
  private void startBrowser(String initialURL) {

    try {
        htmlPane = new JEditorPane(initialURL);
        htmlPane.setEditable(false);
        htmlPane.addHyperlinkListener(this);
        JScrollPane scrollPane = new JScrollPane(htmlPane);
        getContentPane().add(scrollPane, BorderLayout.CENTER);
    } catch(IOException ioe) {
View Full Code Here

    tree.getSelectionModel().setSelectionMode(
        TreeSelectionModel.SINGLE_TREE_SELECTION);
    tree.addTreeSelectionListener(this);
    treeView = new JScrollPane(tree);
    // TODO(jat): better way to do this
    details = new JEditorPane() {
      @Override
      public boolean getScrollableTracksViewportWidth() {
        return true;
      }
    };
View Full Code Here

    tree.getSelectionModel().setSelectionMode(
        TreeSelectionModel.SINGLE_TREE_SELECTION);
    tree.addTreeSelectionListener(this);
    treeView = new JScrollPane(tree);
    // TODO(jat): better way to do this
    details = new JEditorPane() {
      @Override
      public boolean getScrollableTracksViewportWidth() {
        return true;
      }
    };
View Full Code Here

      }
      jPanel1 = new JPanel();
      jPanel2 = new JScrollPane();
      jTree1 = new profileTree();
      jPanel3 = new JScrollPane();
      jEditorPane1 = new JEditorPane();
      jButton1 = new JButton();
 
      BorderLayout thisLayout = new BorderLayout();
      this.getContentPane().setLayout(thisLayout);
      thisLayout.setHgap(0);
View Full Code Here

TOP

Related Classes of javax.swing.JEditorPane$PageLoader

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.