Package javax.swing

Examples of javax.swing.JEditorPane.scrollRectToVisible()


      }
    });

    SwingUtilities.invokeLater(new Runnable(){
      public void run() {
        infoPanel.scrollRectToVisible(new Rectangle(0,0));
      }
    });

    panel.add(ok, cc.xy(2,3));
View Full Code Here


    panel.setBorder(BorderFactory.createTitledBorder("FindBugs analysis run configuration"));
    dialogBuilder.setCenterPanel(panel);

    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        jEditorPane.scrollRectToVisible(new Rectangle(0, 0));
      }
    });

    return dialogBuilder;
  }
View Full Code Here

              }

              final Rectangle r = pane.modelToView(pos);
              System.out.println();
              r.y += pane.getVisibleRect().height;
              pane.scrollRectToVisible(r);
              // pane.setCaretPosition(pos);
            } catch (final Throwable t2) {
              this.warnUser("Can't follow link to "
                  + e.getDescription() + ": " + t2);
View Full Code Here

                    int i, k = eps.length;
                    for (i = 0; i < k; i++) {
                        if (eps[i].getDocument() == doc) {
                            final JEditorPane ep = eps[i];
                            try {
                                ep.scrollRectToVisible(ep.modelToView(offset));
                            } catch (BadLocationException ex) {
                                //      ErrorManager.getDefault ().notify (ex);
                            }
                        }
                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.