Using an empty column as a divider in a JTable

后端 未结 4 1092
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 13:17

I\'m trying to use an empty column as a divider between pairs of columns in a JTable. Here\'s a picture and code for what I have so far. I know I can change the

4条回答
  •  情深已故
    2020-11-29 14:03

    Without knowing what do you want to show in this table it's hard to tell whether you've selected good solution or not.

    Regarding this solution. This column does not seem like a divider. Paint it with gray/another color, or paint divider header cell in white.

    But anyway I'd prefer JScrollPane + two tables inside it instead of this solution.

提交回复
热议问题