Package javax.swing.text

Examples of javax.swing.text.Position


   *         into the text area.
   * @see #removeTrackingIcon(Object)
   */
  public GutterIconInfo addOffsetTrackingIcon(int offs, Icon icon, String tip)
                        throws BadLocationException {
    Position pos = textArea.getDocument().createPosition(offs);
    GutterIconImpl ti = new GutterIconImpl(icon, pos, tip);
    if (trackingIcons==null) {
      trackingIcons = new ArrayList<GutterIconImpl>(1); // Usually small
    }
    int index = Collections.binarySearch(trackingIcons, ti);
View Full Code Here

TOP

Related Classes of javax.swing.text.Position

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.