aspose file tools*
The moose likes Applets and the fly likes List in Java AWT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "List in Java AWT" Watch "List in Java AWT" New topic
Author

List in Java AWT

Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Hi,
I want to know whether it is possible to make a List with Scrollbars, images?
Thanks in advance,
ANgela
Nitin Shivaram
Ranch Hand

Joined: Jan 17, 2001
Posts: 71
Hi,
Dont know abt images, but u can sure get a scroll bar by adding a JList to a JScrollPane.

------------------
Nitin S


Nitin S<br />Sun Certified Java Programmer for the Java 2 platform.<br />Tekmetrics Certified Java Programmer For the Java 2 Platform.
Marine
Greenhorn

Joined: Jan 25, 2001
Posts: 25
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

Joined: Nov 27, 2000
Posts: 428
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

Joined: Jan 26, 2001
Posts: 439
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.


Val SCJP <BR>going for SCJD
Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
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
 
jQuery in Action, 2nd edition
 
subject: List in Java AWT