Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:55 Go to next message
Markus Schütz is currently offline Markus SchützFriend
Messages: 6
Registered: March 2012
Junior Member
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()

At runtime, they both look the same.

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

In addition, if you define a subclass of JTable (, initialize it with addColumn() and then add this subclassed table somewhere (, 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 14:13]

Report message to a moderator

Re: JTable header invisible when created by addColumn() [message #1060502 is a reply to message #1060408] Sat, 25 May 2013 14:04 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
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: Sun Jul 12 01:31:12 GMT 2020

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

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

Back to the top