Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cellrender examples needed

 
shaon husain
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
shaon husain
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to provide more details. What happens when you run the program? Do you get any exception?
 
shaon husain
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20758
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thread Question Solved: move post to a new topic
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic