1 | static void setSelectedIndexAndScroll(final JList l, final int i) { |
2 | if (l != null) swing { |
3 | l.setSelectedIndex(i); |
4 | if (i >= 0) l.ensureIndexIsVisible(i); |
5 | } |
6 | } |
Began life as a copy of #1015288
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: | #1020218 |
Snippet name: | setSelectedIndexAndScroll |
Eternal ID of this version: | #1020218/1 |
Text MD5: | c41057e752332bd340be971958bc284b |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-10 20:15:09 |
Source code size: | 173 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 316 / 362 |
Referenced in: | [show references] |