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

6
LINES

< > BotCompany Repo | #1019285 // setColumnName

JavaX fragment (include)

svoid setColumnName(final JTable table, final int idx, fS name) {
  if (table != null) swing {
    if (table.getColumnCount() > idx)
      table.getColumnModel().getColumn(idx).setHeaderValue(name);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019285
Snippet name: setColumnName
Eternal ID of this version: #1019285/2
Text MD5: 8c663002ccab847bc2cadd7d5a3e9ac8
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-29 12:30:12
Source code size: 209 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 361 / 393
Version history: 1 change(s)
Referenced in: [show references]