Skip to main content

CheckBox messing up grid in JXTreeTable

9 replies [Last post]
tails9
Offline
Joined: 2008-04-29
Points: 0

Hi,

I have a TreeTable and I extended the getColumnClass method in my Model.

It renders CheckBoxes now, but the grid gets interrupted in the CheckBox column, both horizontally and vertically.

Could anyone help me with this?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kschaefe
Offline
Joined: 2006-06-08
Points: 0

You need to use [code]JXTreeTable.setShowGrid(boolean, boolean)[/code] instead of [code]JXTreeTable.setShowHorizontalLines(true);
JXTreeTable.setShowVerticalLines(true);[/code]

Karl

tails9
Offline
Joined: 2008-04-29
Points: 0

That it was so simple... Thank you!

tails9
Offline
Joined: 2008-04-29
Points: 0

ok, give me a minute :P

Message was edited by: tails9

kschaefe
Offline
Joined: 2006-06-08
Points: 0

Can you post a small, runnable demo?

Karl

tails9
Offline
Joined: 2008-04-29
Points: 0

I have some trouble posting the code (the code hangs on some parts in the post, like double '=', []'s and 'null')

so, I posted it here: http://pastebin.com/m3830de05

Message was edited by: tails9

kschaefe
Offline
Joined: 2006-06-08
Points: 0

It's just long and you need to wrap it in code markers to prevent it from being clipped by the board posting engine.

Karl

tails9
Offline
Joined: 2008-04-29
Points: 0

I did, {code} right?

kschaefe
Offline
Joined: 2006-06-08
Points: 0

No [[b][/b]code]...[[b][/b]/code].

Karl

tails9
Offline
Joined: 2008-04-29
Points: 0

*bump*