• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems adding content to list

 
Srinivas Nagesh
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am adding contents to a list in AWT using add method. What happens is, as soon as the list gets fully populated and the vertical scrollbar comes up and the last added content remains at the bottom instead of coming on Top. How can i get the content to come back on Top.
Thanks
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you mean that you want the last item you added to the list to be visible, then right after you add it to the list, also do:


This will make the list scroll to the last item in the list...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!