Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CellRendering in JList  RSS feed

Gokula krishnan
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i want to design my list item with background image,font faces and sizes when it selected by using Html tags.

for example,

// Contacts(userName, userIcon);
new Contacts("<html> <table width= '75%' height='57' border='1'><tr> <td align='center' background='resources/id.gif'><img src='resources/id.gif' width='22' height='20'>Username", resources/id.gif")

i got partially.. i couldn't set the images in that.. instaed of images, it shows image broken link. but the same image, i can assign for the userIcon.

and another one, how i implement this, when item selected.

if anyone know this, pls tell me
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!