Skip to main content



      Home
Home » Eclipse Projects » WindowBuilder » JTable header invisible when created by addColumn()
JTable header invisible when created by addColumn() [message #1060408] Fri, 24 May 2013 09:55 Go to next message
Eclipse UserFriend
It seems like WindowBuilder does not display table headers if they were created by calling JTable.addColumn().

The left shows a table created using setModel() and the right a table created using addColumn()
index.php/fa/15034/0/

At runtime, they both look the same.
index.php/fa/15035/0/

I've attached the test code as TableTest.java.
Is there any way to make it work without big code changes?


EDIT:
In addition, if you define a subclass of JTable (CustomTable.java), initialize it with addColumn() and then add this subclassed table somewhere (CustomTablTest.java), the headers will be visible. But only if the subclass has been defined in its own file! When I moved the subclass definition inside the CustomTableTest class, it did not work.

[Updated on: Fri, 24 May 2013 10:13] by Moderator

Re: JTable header invisible when created by addColumn() [message #1060502 is a reply to message #1060408] Sat, 25 May 2013 10:04 Go to previous message
Eclipse UserFriend
WindowBuilder does not currently support the addColumn() method, so it does not try to parse it.

Since addColumn() is not a simple JavaBean property, special design-time support would need to be added for it.

I would suggest adding a feature request to Bugzilla describing the need so that we can track it for future work. WB is open source, so we would certainly welcome a patch that added that capability.
Previous Topic:WindowBuilder Bug. Control position in Designer View is opposite
Next Topic:Bug, crash on Exposing a label
Goto Forum:
  


Current Time: Wed Jul 02 16:10:47 EDT 2025

Powered by FUDForum. Page generated in 0.06866 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top