• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to sort items in java.awt.List

 
Ramu Rondla
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
 
Joe Ess
Bartender
Pie
Posts: 9266
10
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic