GroupableTableHeader example won't work in JVM 1.5
From: ychaput (ychaput_at_itl.ca)
Date: 10/28/04
- Next message: Kannan S: "Re: Capturing all KeyEvents in the system"
- Previous message: Babu Kalakrishnan: "Re: Updating of a Tree when the label changes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Oct 2004 07:49:39 -0700
Hello,
After trying the GroupableTableHeader example found at:
http://www.objects.com.au/java/examples/swing/GroupableTableHeader.do
and after correction of 2 lines in GroupableTableHeaderUI.java:
-> In the paintCell method, replace the line:
TableCellRenderer renderer = aColumn.getHeaderRenderer();
by:
TableCellRenderer renderer =
header.getTable().getTableHeader().getDefaultRenderer();
-> In the getHeaderHeight method, replace the line:
TableCellRenderer renderer = aColumn.getHeaderRenderer();
by:
TableCellRenderer renderer =
header.getTable().getTableHeader().getDefaultRenderer();
Everything works fine with a JVM 1.4, but when I try it with a JVM 1.5
I never got the Group-Columns... It looks as if the paint method of
the UI
is never called under 1.5...
Has anyone got the same problem ?
And if yes, is there a solution to correct it ?
Thank you for any help...
Yvon
- Next message: Kannan S: "Re: Capturing all KeyEvents in the system"
- Previous message: Babu Kalakrishnan: "Re: Updating of a Tree when the label changes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]