java - How change foreground color in a specific row from a default jtable -
i have default jtable in application. little checking, , change color of rows have first column equal close.
i've been trying this, , got this:
string x = jtable.getmodel().getvalueat(0, 0).tostring(); if(x.equals("close")) { jtable.setforeground(color.red); }
but way did, change color of lines. , makes checking first element of table.
i liked checking lines , change had first column equal close.
does can me please?
thank can give me.
greetings.
you have implement tablecellrenderer. have @ using custom renderers of jtabel tutorial oracle.
Comments
Post a Comment