• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to sort items in java.awt.List  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,
I am a beginner in java. I am trying my hand at AWT. I am wondering is there anyway to sort items in a List. (not java.util.List)
Thanks
Ramu
 
Bartender
Posts: 9482
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get the list of objects as an array of String objects with List.getItems() and you can sort arrays using java.util.Arrays.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!