JXTable and dealing with DefaultTableCellRenderer problems
I've been reading the threads on this since yesterday.
It looked like someone was going to create a JX version of DefaultTableCellRenderer.
I like the 'what' and 'how' seperation. I just can't seem to 'easily' get my objects to color correctly unless it is selected. Then the legacy CellRenderer works as expected.
In my mind the Highlighter is at the view level and doesn't know about 'Object value'.
What would be ideal is if I could just add an interface tag to ANY OBJECT that is placed in the model and it knows how to renderer itself based on state.
So this method would become an Interface contract:
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
Just refactor JTable above to be generic, and expose the 2D painter for setting the Pen Stroke attributes. foreground/background
What is the suggested way I refactor legacy CellRenderers? I need to have something working by the end of the week.