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

6
LINES

< > BotCompany Repo | #1019568 - selectedTableRowInModel

JavaX fragment (include)

static int selectedTableRowInModel(final JTable t) {
  ret t == null ? -1 : swing(func -> int {
    int i = t.getSelectedRow();
    ret i < 0 ? i : t.convertRowIndexToModel(i);
  });
}

Author comment

Began life as a copy of #1018663

download  show line numbers  debug dex   

Travelled to 8 computer(s): cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1019568
Snippet name: selectedTableRowInModel
Eternal ID of this version: #1019568/1
Text MD5: 49485dbec677fd08e21dddde46ccaaa3
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-12 15:51:09
Source code size: 189 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 78 / 94
Referenced in: [show references]

Formerly at http://tinybrain.de/1019568 & http://1019568.tinybrain.de