1 | static void selectRowIfNotNegative(JTable table, int i) { |
2 | if (i >= 0) selectRow(table, i); |
3 | } |
4 | |
5 | static void selectRowIfNotNegative(JList list, int i) { |
6 | if (i >= 0) selectRow(list, i); |
7 | } |
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: | 281 / 323 |
Referenced in: | [show references] |