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

7
LINES

< > BotCompany Repo | #1020451 // selectRowIfNotNegative - select row in a JTable or JList if it isn't -1

JavaX fragment (include)

static void selectRowIfNotNegative(JTable table, int i) {
  if (i >= 0) selectRow(table, i);
}

static void selectRowIfNotNegative(JList list, int i) {
  if (i >= 0) selectRow(list, i);
}

Author comment

Began life as a copy of #1004327

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020451
Snippet name: selectRowIfNotNegative - select row in a JTable or JList if it isn't -1
Eternal ID of this version: #1020451/1
Text MD5: c695322f2126b9598452461e9feef8b7
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-22 18:35:54
Source code size: 193 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 280 / 322
Referenced in: [show references]