src/share/classes/javax/swing/text/DefaultStyledDocument.java

Print this page

        

*** 171,181 **** * element structure so the time within a write lock can * be greatly reduced in an asynchronous update situation. * <p> * This method is thread safe, although most Swing methods * are not. Please see ! * <A HREF="http://docs.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency * in Swing</A> for more information. * * @param offset the starting offset &gt;= 0 * @param data the element data * @exception BadLocationException for an invalid starting offset --- 171,181 ---- * element structure so the time within a write lock can * be greatly reduced in an asynchronous update situation. * <p> * This method is thread safe, although most Swing methods * are not. Please see ! * <A HREF="https://docs.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency * in Swing</A> for more information. * * @param offset the starting offset &gt;= 0 * @param data the element data * @exception BadLocationException for an invalid starting offset
*** 424,434 **** * in turn may resolve through some hierarchy completely * independent of the element hierarchy in the document. * <p> * This method is thread safe, although most Swing methods * are not. Please see ! * <A HREF="http://docs.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency * in Swing</A> for more information. * * @param pos the offset from the start of the document &gt;= 0 * @param s the logical style to assign to the paragraph, null if none */ --- 424,434 ---- * in turn may resolve through some hierarchy completely * independent of the element hierarchy in the document. * <p> * This method is thread safe, although most Swing methods * are not. Please see ! * <A HREF="https://docs.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency * in Swing</A> for more information. * * @param pos the offset from the start of the document &gt;= 0 * @param s the logical style to assign to the paragraph, null if none */
*** 481,491 **** * are being made, and a DocumentEvent is sent to the listeners * after the change has been successfully completed. * <p> * This method is thread safe, although most Swing methods * are not. Please see ! * <A HREF="http://docs.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency * in Swing</A> for more information. * * @param offset the offset in the document &gt;= 0 * @param length the length &gt;= 0 * @param s the attributes --- 481,491 ---- * are being made, and a DocumentEvent is sent to the listeners * after the change has been successfully completed. * <p> * This method is thread safe, although most Swing methods * are not. Please see ! * <A HREF="https://docs.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency * in Swing</A> for more information. * * @param offset the offset in the document &gt;= 0 * @param length the length &gt;= 0 * @param s the attributes
*** 534,544 **** /** * Sets attributes for a paragraph. * <p> * This method is thread safe, although most Swing methods * are not. Please see ! * <A HREF="http://docs.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency * in Swing</A> for more information. * * @param offset the offset into the paragraph &gt;= 0 * @param length the number of characters affected &gt;= 0 * @param s the attributes --- 534,544 ---- /** * Sets attributes for a paragraph. * <p> * This method is thread safe, although most Swing methods * are not. Please see ! * <A HREF="https://docs.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency * in Swing</A> for more information. * * @param offset the offset into the paragraph &gt;= 0 * @param length the number of characters affected &gt;= 0 * @param s the attributes