Hi,
I am using JIDE DocumentComponent in the following way:
1) create instance of JTable
2) wrap the JTable instance in JScrollPane
3) wrap the JScrollPane in DocumentComponent
4) Add the DocumentComponent into DocumentPane.
I am aware of getDisplayTitle() method in DocumentComponent, which I can use to customized the DocumentComponent's title.
However, it seems that getDisplayTitle() method is called only when the DocumentPane is activated or de-activated.
Is there a way to update DocumentComponent title based on the content of JComponent (in this case, it is JTable) wrapped inside DocumentComponent?
For example: If the table is empty, i want to show the title in blue colour, but if the table contains at least 1 row, i want to show the title in red colour.
Cheers,
al