Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #3304 > unrolled thread
| Started by | "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:44 +0000 |
| Last post | 2011-04-27 15:44 +0000 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.java.gui
Scrolling behavior on tex "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000
Re: Scrolling behavior on "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000
Re: Scrolling behavior on "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000
| From | "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:44 +0000 |
| Subject | Scrolling behavior on tex |
| Message-ID | <172a4aa2-97f4-4b82-aa32-71bef95a2845@a1g2000hsb.googlegroups.com> |
To: comp.lang.java.gui Hello, how do I achieve that a JScrollPane which has a JTextPane as viewport, will scroll automatically along with the added text at the bottom? The latest text entries shall be readable at all times! TIA Karsten --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [next] | [standalone]
| From | "tar" <tar@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:44 +0000 |
| Subject | Re: Scrolling behavior on |
| Message-ID | <ymitzizofj7.fsf@blackcat.isi.edu> |
| In reply to | #3304 |
To: comp.lang.java.gui setCaretPosition to the end of the text. myPane.setCaretPosition(myPane.getText.length()); -- Thomas A. Russ, USC/Information Sciences Institute --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:44 +0000 |
| Subject | Re: Scrolling behavior on |
| Message-ID | <96b470b6-4a5a-4b4e-bd5e-d8b5a484106b@59g2000hsb.googlegroups.com> |
| In reply to | #3306 |
To: comp.lang.java.gui On 21 Mrz., 23:53, t...@sevak.isi.edu (Thomas A. Russ) wrote: > setCaretPosition to the end of the text. > > myPane.setCaretPosition(myPane.getText.length()); > > -- > Thomas A. Russ, USC/Information Sciences Institute OK I found it. However the solution here was to use setCaretPosition(getDocument().getLength()); instead. setCaretPosition(getText().length()); //IllegalArgumentException (bad position) Don't know why though... Karsten --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web