This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes AutoScroll text to bottom of a StyledText component in SWT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "AutoScroll text to bottom of a StyledText component in SWT" Watch "AutoScroll text to bottom of a StyledText component in SWT" New topic
Author

AutoScroll text to bottom of a StyledText component in SWT

ragz wifer
Greenhorn

Joined: Dec 22, 2010
Posts: 22
Hi,

I'm reading a text file and displaying in the styledtext component of SWT, each time a new line is appended it's not shown, i mean the line is added to the next row but the scrollbar is NOT scrolling to the next row.
How can i make it auto scroll, as a workaround i tried using



it does auto scroll,but shows the complete selection of text, can someone provide an optimal and better programming practice for this case.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: AutoScroll text to bottom of a StyledText component in SWT
 
Similar Threads
Eclipse Source Code
Scroll inside styledText
how to add a scrollpane...
swt styledtext search/find next
AutoScroll text to bottom of a StyledText component in SWT