swingx-highlighter

SwingX JXTable: use ColorHighlighter to color rows based on a “row object”

自作多情 提交于 2019-12-30 09:34:21
问题 I'm using JXTable and I know how to do this based on DefaultRenderers for JTable, but I want to know how to do it in a way that's JXTable-friendly based on HighlighterPipeline. I have a list of objects displayed in a table, and each row represents one object. I would like to color the rows displaying objects of a certain type a different color. It looks like I should be using ColorHighlighter. But I can't find examples for this, other than the simple highlighters like "color every other row"

SwingX JXTable: use ColorHighlighter to color rows based on a “row object”

倖福魔咒の 提交于 2019-12-01 05:54:09
I'm using JXTable and I know how to do this based on DefaultRenderers for JTable, but I want to know how to do it in a way that's JXTable-friendly based on HighlighterPipeline. I have a list of objects displayed in a table, and each row represents one object. I would like to color the rows displaying objects of a certain type a different color. It looks like I should be using ColorHighlighter . But I can't find examples for this, other than the simple highlighters like "color every other row" or some such thing. I need the row number since there's no such thing as a "row object" in the JTable