The Accidental Rubyist

invalid byte sequence in UTF-8

Those alternating rows everyone craves

leave a comment »

Just thought i’d override the TableCellRenderer and set it, and voila, those alternating colored rows some folks want.

testtable.rb contains various column manipulations, as well as a sample of editing table cells using an external field.

alternate colors on rows

alternate colors on rows

Advertisements

Written by totalrecall

January 7, 2009 at 1:26 am

Posted in ruby

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: