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

Print this page

        

*** 406,416 **** * detecting this situation, but a subclass could incur * the overhead of tracking them and throwing an error. * <p> * This method is thread safe, although most Swing methods * are not. Please see ! * <A HREF="http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency * in Swing</A> for more information. * * @param r the renderer to execute */ public void render(Runnable r) { --- 406,416 ---- * detecting this situation, but a subclass could incur * the overhead of tracking them and throwing an error. * <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 r the renderer to execute */ public void render(Runnable r) {
*** 567,577 **** * actual changes are taking place. Observers are notified * of the change on the thread that called this method. * <p> * This method is thread safe, although most Swing methods * are not. Please see ! * <A HREF="http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency * in Swing</A> for more information. * * @param offs the starting offset >= 0 * @param len the number of characters to remove >= 0 * @exception BadLocationException the given remove position is not a valid --- 567,577 ---- * actual changes are taking place. Observers are notified * of the change on the thread that called this method. * <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 offs the starting offset >= 0 * @param len the number of characters to remove >= 0 * @exception BadLocationException the given remove position is not a valid
*** 680,690 **** * actual changes are taking place, followed by notification * to the observers on the thread that grabbed the write lock. * <p> * This method is thread safe, although most Swing methods * are not. Please see ! * <A HREF="http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency * in Swing</A> for more information. * * @param offs the starting offset >= 0 * @param str the string to insert; does nothing with null/empty strings * @param a the attributes for the inserted content --- 680,690 ---- * actual changes are taking place, followed by notification * to the observers on the thread that grabbed the write lock. * <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 offs the starting offset >= 0 * @param str the string to insert; does nothing with null/empty strings * @param a the attributes for the inserted content
*** 835,845 **** * Returns a position that will track change as the document * is altered. * <p> * This method is thread safe, although most Swing methods * are not. Please see ! * <A HREF="http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency * in Swing</A> for more information. * * @param offs the position in the model >= 0 * @return the position * @exception BadLocationException if the given position does not --- 835,845 ---- * Returns a position that will track change as the document * is altered. * <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 offs the position in the model >= 0 * @return the position * @exception BadLocationException if the given position does not