• Post Reply Bookmark Topic Watch Topic
  • New Topic

wants to focusing on new added list item.. please help

 
Qasim Shabbir
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i wanted to focus on new added item on list.. how can i do it if any body help me in tht regard.
when item is added default behaviour of JList is simple insert it downward the scroll bar is not moved downward. i wants to do it autmaticaly. when new item is added to a list the srollbar is also move downword.
simply stated is tht i wants tht list always show me new item added.. no matter how much item i added. it should focusing on last aded item.
thnks in advance.. for help in above matter.
qasim shabbir
SCJP
 
Rene Liebmann
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a sample, which does what you need:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!