[Last Call] Learn how to a build a cloud-first strategyRegister Now


Attaching icons into a table items

Posted on 2006-03-28
Medium Priority
Last Modified: 2010-04-01

I have a table displayed with items. I want to attach an icon (like a file folder icon) to each string displayed in each cell of the table so that the user will get a better graphical effect.

How Should I do this?

Question by:prain
  • 2
LVL 16

Accepted Solution

suprapto45 earned 152 total points
ID: 16317804
Is this in web-app (JSP) or in SWING?

If it is in web-app, you can use <img src="[path of your images]">, can't you?
If it is in SWING, I am not good in SWING ;)

LVL 35

Expert Comment

ID: 16365661
You could do this with CSS as well...
LVL 35

Assisted Solution

TimYates earned 148 total points
ID: 16365684
Assuming a 16x16 icon:

<style type="text/css">
  background-image: url(icon.gif) ;
  background-repeat: no-repeat ;
  padding: 1px 1px 1px 17px ;
  height: 18px ;

Should put an icon next to the text in every cell...

I haven't tested it, but it *should* work ;-)

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
Exchange administrators are always vigilant about Exchange crashes and disasters that are possible any time. It is quite essential to identify the symptoms of a possible Exchange issue and be prepared with a proper recovery plan. There are multiple…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question