Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1003895 // tableColumnMaxWidth

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2910L/17K).

static void tableColumnMaxWidth(final JTable table, final int columnIdx, final int width) {
  swing {
    pcall {
      if (inRange(columnIdx, table.getColumnCount()))
        table.getColumnModel().getColumn(columnIdx).setMaxWidth(width);
    }
  }
}

Author comment

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: 513 / 562
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)