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

6
LINES

< > BotCompany Repo | #1001707 // getSelectedColumn

JavaX fragment (include)

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

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: 572 / 804
Referenced in: [show references]