static void setSelectedIndexAndScroll(final JList l, final int i) { if (l != null) swing { l.setSelectedIndex(i); if (i >= 0) l.ensureIndexIsVisible(i); } }
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: | 512 / 548 |
| Referenced in: | [show references] |