Libraryless. Click here for Pure Java version (7641L/43K).
svoid onTabSelected(JTabbedPane tabs, Runnable r) { if (tabs != null) swing { tabs.getModel().addChangeListener(changeListener(r)); } } svoid onTabSelected(JTabbedPane tabs, IVF1<Int> r) { if (tabs != null && r != null) onTabSelected(tabs, -> r.get(tabs.getSelectedIndex())); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020865 |
Snippet name: | onTabSelected |
Eternal ID of this version: | #1020865/3 |
Text MD5: | bfea06fbf122f1f05c8b5af394a5b767 |
Transpilation MD5: | 6dc37781bcbe1823f28ed5291fa647c5 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-03 18:02:24 |
Source code size: | 303 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 353 / 451 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1035164 - onTabSelectedAndNow |