Skip to Content
author's profile photo Former Member
Former Member

CellRenderer for "setStyleForCell" ?

Hello to All,

my question is really simple. I like to render some cells in a specific design, depending on their values in a Table.

Example: all values above 50 getting TableCellStyle.GOODVALUE_MEDIUM all other get TableCellStyle.BADVALUE_MEDIUM

I thought that I could take a CellRenderer for this, but doesn´t work. But going to the JSP directly is a problem. Wherer I can get the Row and Collumns? Is there an easy code snippet that I could use?

Regards,

Marcus

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Dec 13, 2004 at 03:19 PM

    Hi Marcus,

    what do mean under "doesn´t work"? TableView.setCellRenderer(ICellRenderer) works usually

    fine.

    Cheers Maxim R.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2004 at 07:05 PM

    Hi,

    I tried the same...

    but I can't see any effects.

    Anybody here who can help us?

    Best Regards,

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2004 at 07:19 PM

    Hi again,

    I have a Tree inside a table Cell and for this cell the "setStyleForCell" does not work. For all other cell

    it works...

    Regards, Christian

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.