#7 RowColorModel.getColor gets exception

v0.9
closed-out-of-date
nobody
model (4)
5
2002-05-22
2002-04-30
Anonymous
No

RowColorModel.getColor generates an
IllegalArgumentException beginning with the 12th row.
The problem is the call to the Color constructor with
the float arguments. Color(float,float,float) requires
its arguments to be in the range (0.0 - 1.0); you are
shifting them into the range 0.0 - 255.0. You should
either leave the arguments in the range 0.0 - 1.0 or
you should use Color(int, int, int).

Discussion

  • S. Müller
    S. Müller
    2002-05-22

    • status: open --> closed-out-of-date