Are there any rational pros and cons on using one class acting as both TableCellEditor
and TableCellRenderer
? I'm not asking for preferences or "which way is more popular", but rather if there are some inherent issues with that design (other than possibly being confusing).
Edit 1: Additionally, are there any performance concerns involved in choosing between one class to be both renderer and editor versus simply having both renderer and editor classes in the same Java file?
It seems odd to me to have one object wearing both editor and renderer hats at the same time, but oddness alone isn't a reason for me to not pursue this pattern.