Re: Merging table column headers
| From:[jdnc-interest@masked-domain] |
| Sent on:Tue, 06 May 2008 00:37:33 PDT |
| In reply to:<5356466.1159063520345.JavaMail.tomcat@sdcst4.sfo.collab.net> |
Hi there,
I have recently checked out the groupable table header related code and it does everything I need as long as the default crossplatform or system LaF is used.
Unfortunately, I was unable to get proper table header rendering under Substance 4.3. In order to compile to source it was necessary to perform some minor modifications in SubstanceGroupableTableHeaderUI.java. Once all compilation errors have been fixed, the main method in ColumnGroupDemo was enhanced with the call UIManager.setLookAndFeel(new SubstanceBusinessBlackSteelLookAndFeel()) in order to initialise the Substabce LaF (all other LaF initialisation code was commended out).
When ColumnGroupDemo was executed, the table with grouped headers did not have any column separators or the background gradient paint in the header. At the same time the table without the grouped headers was rendered correctly.
Looking into the console revealed the following exception:
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: org.jdesktop.swingx.plaf.basic.BasicGroupableTableHeaderUI cannot be cast to org.jvnet.substance.SubstanceTableHeaderUI
at org.jvnet.substance.SubstanceScrollPaneUI.installTableHeaderCornerFiller(SubstanceScrollPaneUI.java:748)
at org.jvnet.substance.SubstanceScrollPaneUI$2$2.run(SubstanceScrollPaneUI.java:227)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Could anyone pls advise what needs to be done in order for the Substabce LaF to pick org.jdesktop.swingx.plaf.substance.SubstanceGroupableTableHeaderUI correctly instead of its own implementation org.jvnet.substance.SubstanceTableHeaderUI? Or perhaps the reason is caused by something else...
Greatly appreciate any help.
Thanx,
01es
[Message sent by forum member '01es' (01es)]
http://forums.java.net/jive/thread.jspa?messageID=272897
---------------------------------------------------------------------
To unsubscribe, e-mail: [jdnc-unsubscribe@masked-domain]
For additional commands, e-mail: [jdnc-help@masked-domain]
Other messages in this topic
| Sender | Date sent | Subject |
| [jdnc-interest@masked-domain] | Mon, 12 May 2008 23:41:15 PDT | Re: Merging table column headers |
| [jdnc-interest@masked-domain] | Mon, 12 May 2008 23:35:46 PDT | Re: Merging table column headers |
| [jdnc-interest@masked-domain] | Mon, 12 May 2008 23:22:39 PDT | Re: Merging table column headers |
| [jdnc-interest@masked-domain] | Mon, 12 May 2008 11:38:23 PDT | Re: Merging table column headers |
| [jdnc-interest@masked-domain] | Mon, 12 May 2008 11:37:08 PDT | Re: Merging table column headers |
| [jdnc-interest@masked-domain] | Mon, 12 May 2008 11:35:09 PDT | Re: Merging table column headers |
| [jdnc-interest@masked-domain] | Mon, 12 May 2008 08:51:19 PDT | Re: Merging table column headers |
| [jdnc-interest@masked-domain] | Mon, 12 May 2008 08:49:31 PDT | Re: Merging table column headers |
| [jdnc-interest@masked-domain] | Mon, 12 May 2008 05:00:53 PDT | Re: Merging table column headers |
| [jdnc-interest@masked-domain] | Sun, 11 May 2008 21:46:05 PDT | Re: Merging table column headers |
| [jdnc-interest@masked-domain] | Fri, 09 May 2008 12:59:09 PDT | Re: Merging table column headers |
| [jdnc-interest@masked-domain] | Fri, 09 May 2008 11:04:43 PDT | Re: Merging table column headers |
| [jdnc-interest@masked-domain] | Tue, 06 May 2008 04:48:45 PDT | Re: Merging table column headers |
| Kleopatra [fastegal@masked-domain] | Tue, 06 May 2008 12:07:51 +0200 | Re: Merging table column headers |