File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes cellrender examples needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "cellrender examples needed" Watch "cellrender examples needed" New topic
Author

cellrender examples needed

shaon husain
Ranch Hand

Joined: Mar 20, 2013
Posts: 37
can someone post example of cellrender in jlist whereby, you can add item into list and image will show up according to whats been inputted,

thanks
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10375
    
    8

Check out http://docs.oracle.com/javase/tutorial/uiswing/components/list.html and http://www.toedter.com/en/jcalendar/


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
shaon husain
Ranch Hand

Joined: Mar 20, 2013
Posts: 37


thanks for your reply, but i cant seem to get it to work,
so here is my code:


all i want it to do is add an image to the key value,
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1083
    
  10

You need to provide more details. What happens when you run the program? Do you get any exception?


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
shaon husain
Ranch Hand

Joined: Mar 20, 2013
Posts: 37
Ranganathan Kaliyur Mannar wrote:You need to provide more details. What happens when you run the program? Do you get any exception?


no images show up, not exception is thrown
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Your program doesn't even compile -- it refers to a nonexistent "MyCellRenderer" class -- so you shouldn't even be able to run it.
shaon husain
Ranch Hand

Joined: Mar 20, 2013
Posts: 37
Thread Question Solved: move post to a new topic
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cellrender examples needed