• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

List in Java AWT

 
Angela Jessi
Ranch Hand
Posts: 428
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to know whether it is possible to make a List with Scrollbars, images?
Thanks in advance,
ANgela
 
Nitin Shivaram
Ranch Hand
Posts: 71
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Dont know abt images, but u can sure get a scroll bar by adding a JList to a JScrollPane.

------------------
Nitin S
 
Marine
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well i don't think it's possible to do this in List of awt. But if you would want to implement this in JList it's possible. JList allows you to use ListRenderer which you can supply a component of your type to be used inside a list. Say a label. You can set images on label by specifying setIcon() method and image you'd like to view. I don't know about though in awt.
 
Angela Jessi
Ranch Hand
Posts: 428
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marine & Nitin,
I am using AWT. Is it possible to create own classes which give LIST WITH SCROLLLBARS...
Thanks in advance,
Angela
 
Val Dra
Ranch Hand
Posts: 439
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ScrollBars are not a problem in the List , whever you have more elements then can fit i believe it will place a scroll bar in there automaticaly.
 
Angela Jessi
Ranch Hand
Posts: 428
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Val,
How I create Panel in which i will have header and bottom Table like object(rows & Columns) with AWT(NOT SWING)
Thanks,
Angela
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic