Difficulties understanding the renderers mechanism of swing's JTable and JTree
问题 Often, when using JTable or JTree user writes and assign it is own specific cell renderer. It is very common to inherit user's component from DefaultTableCellRenderer , and implements the renderer method getTableCellRendererComponent . It turns out that DefaultTableCellRenderer in fact inherits from JLabel, thus returns himself (this) when called to super (at the render method) and thus user's renderer can similarly returns himself (this) as well. And it all works well. My question is how can