• Post Reply Bookmark Topic Watch Topic
  • New Topic

Scrollbars in JTextArea

 
henri henri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please see the link below for visual guide.

http://pollscanada.com/screenshot.html

I have my TextArea in the middle of the application which displays film titles when the user clicks on a category in the JComboBox further down on the left where it has the entry Science Fiction.

When the user clicks on another category, the scrollbars stay at the same level, so the the user does not see the top of the next chosen category list.

Is there a way to make the srollbars go back to the top after clicking on another entry in the JComboBox?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
perhaps the answer here might help you

http://forum.java.sun.com/thread.jspa?threadID=677985&tstart=15
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Swing/AWT...
 
nabi bux
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for further information use javablach book
or java documentation
in which see thefollowing classes
Jtoolbar
and JViewport
i think you will get hel
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!