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

9
LINES

< > BotCompany Repo | #1003693 - getTableLine - turns elements into strings

JavaX fragment (include)

static L<S> getTableLine(JTable tbl, int row) {
  if (row >= 0 && row < tbl.getModel().getRowCount()) {
    new L<S> l;
    for (int i = 0; i < tbl.getModel().getColumnCount(); i++)
      l.add(String.valueOf(tbl.getModel().getValueAt(row, i)));
    ret l;
  }
  ret null;
}

Author comment

Began life as a copy of #1001754

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: #1003693
Snippet name: getTableLine - turns elements into strings
Eternal ID of this version: #1003693/1
Text MD5: 0e3a3550b4d88b9d039e2e25551306ff
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-05 00:32:32
Source code size: 282 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 457 / 485
Referenced in: [show references]