mgarin / weblaf

WebLaF is a fully open-source Look & Feel and component library written in pure Java for cross-platform desktop Swing applications.
http://weblookandfeel.com
GNU General Public License v3.0
1.13k stars 234 forks source link

WebTable how to merge head row? #679

Closed wyj3531 closed 2 years ago

wyj3531 commented 2 years ago

WebTable how to merge head row1 and row2 with a new row?

mgarin commented 2 years ago

If you mean something like this -

image

It isn't supported yet in WebLaF and not available in standard Swing either.

There are some examples out there, like this one: http://www.java2s.com/Code/Java/Swing-Components/GroupableGroupHeaderExample.htm But I'm not sure whether it will work or how well it will work.

mgarin commented 2 years ago

I've added a separate feature for future addition: #680

But it's most probably not coming anytime soon, so if you need an immediate solution - your best shot is trying to implement one yourself and then replace it later with WebLaF one, once it becomes available.

mgarin commented 2 years ago

Will be closing this issue All groupable table header -related discussions will be held in #680