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

6
LINES

< > BotCompany Repo | #1019287 // getColumnName

JavaX fragment (include)

sS getColumnName(final JTable table, final int idx) {
  ret table == null ? null : swing(func -> S {
    table.getColumnCount() <= idx ? null
      : str(table.getColumnModel().getColumn(idx).getHeaderValue())
  });
}

Author comment

Began life as a copy of #1019285

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: #1019287
Snippet name: getColumnName
Eternal ID of this version: #1019287/1
Text MD5: 510bd388e99e9c0b75e41e1aed2fae36
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:33:53
Source code size: 222 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 365 / 389
Referenced in: [show references]