Keeping a single column static inside a JTable

2019-09-04 22:56发布

Is there a way to keep the first column of a JTable embedded inside a JScrollPane static on scrolling the mouse horizontally.The table contains more than 50 columns.

标签: java jtable
1条回答
该账号已被封号
2楼-- · 2019-09-04 23:17

There is an example of this on this Swing examples site. The author creates two tables, putting one of them in the scrollpane. They both share the same model. He then ties their selection logic together. The full code is available on the page.

查看更多
登录 后发表回答