Libraryless. Click here for Pure Java version (2910L/17K).
1 | static void tableColumnMaxWidth(final JTable table, final int columnIdx, final int width) {
|
2 | swing {
|
3 | pcall {
|
4 | if (inRange(columnIdx, table.getColumnCount())) |
5 | table.getColumnModel().getColumn(columnIdx).setMaxWidth(width); |
6 | } |
7 | } |
8 | } |
Began life as a copy of #1003893
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1003895 |
| Snippet name: | tableColumnMaxWidth |
| Eternal ID of this version: | #1003895/2 |
| Text MD5: | 9a36d15f015574b6ed06100f31b667c6 |
| Transpilation MD5: | b56bdcb75028e3bca37bad87e69846c3 |
| Author: | stefan |
| Category: | javax swing |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-03-31 15:13:00 |
| Source code size: | 258 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 757 / 837 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |