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

6
LINES

< > BotCompany Repo | #1001707 // getSelectedColumn

JavaX fragment (include)

static S getSelectedColumn(JTable tbl, int col) {
  int row = tbl.getSelectedRow();
  if (row >= 0 && row < tbl.getModel().getRowCount())
    ret String.valueOf(tbl.getModel().getValueAt(row, col));
  ret null;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001707
Snippet name: getSelectedColumn
Eternal ID of this version: #1001707/1
Text MD5: b4807142209ad3bf9499f64b7e2d5428
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-05 17:14:21
Source code size: 217 bytes / 6 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 571 / 803
Referenced in: [show references]