I have a JTable and with a checkbox in the column header and a mouse listener so I can tell when the checkbox has changed.
Whenever I try to resize one of the table column widths I will get a stack Overflow.
Even with all of the mouse listener methods empty. So it's nothing my listener is doing.
Is there any way around this problem? Thanks.
Uncaught Exception in thread "AWT-EventQueue-0"
java.lang.StackOverflowError
java.awt.AWTEventMulticaster.mouseExited(Unknown Source)
java.awt.AWTEventMulticaster.mouseExited(Unknown Source)
java.awt.AWTEventMulticaster.mouseExited(Unknown Source)
if (table != null) {
JTableHeader header = table.getTableHeader();
if (header != null) {
rendererComponent.setForeground(header.getForeground());
rendererComponent.setBackground(header.getBackground());
rendererComponent.setFont(header.getFont());
header.addMouseListener(rendererComponent);
}
}