Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #286

setCellRenderer for speci

From "terpatwork" <terpatwork@THRWHITE.remove-dii-this>
Subject setCellRenderer for speci
Message-ID <1164968403.235530.312120@80g2000cwy.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:26 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Hi,
I'm working on JTable ->HTML Table representations and I'm trying to
figure out how to set a CellRenderer for a specific cell, rather than
for the entire column.
For example, JTable.setDefaultRenderer(ImageIcon.class, new
MyImageIconRenderer()) will work if I want the entire column to be
rendered using that renderer, but is there a way that I can specify a
cell renderer for a specific cell as opposed to the entire column?

The idea is when some body creates an HTML table, the data isn't always
of the same type in a certain column, so I'd like to be able to grab
the class of a specific cell, then render it using the renderer I've
created for that class.

If anything else is needed to make my question more clear, feel free to
ask!

Thanks in advance

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextNext in thread | Find similar


Thread

setCellRenderer for speci "terpatwork" <terpatwork@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: setCellRenderer for s "Bart Cremers" <bart.cremers@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
    Re: setCellRenderer for s "terpatwork" <terpatwork@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: setCellRenderer for s "Nickolay Cherkezishvili" <nickolay.cherkezishvili@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
    Re: setCellRenderer for s "Bart Cremers" <bart.cremers@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: setCellRenderer for s "Nickolay Cherkezishvili" <nickolay.cherkezishvili@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: setCellRenderer for s "Nickolay Cherkezishvili" <nickolay.cherkezishvili@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000

csiph-web