Libraryless. Click here for Pure Java version (10204L/72K).
1 | static JTabbedPane mapMethodLike dm_rememberSelectedTab(S indexField, JTabbedPane tabs) { |
2 | DynModule mod = dm_current_mandatory(); |
3 | selectTab(tabs, toInt(get(mod, indexField))); |
4 | onTabSelected(tabs, r { mod.setField(indexField, selectedTabIndex(tabs)) }); |
5 | ret tabs; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028819 |
Snippet name: | dm_rememberSelectedTab |
Eternal ID of this version: | #1028819/2 |
Text MD5: | d1774ed092da9133524b003c12f6f155 |
Transpilation MD5: | 3e13f7872b200a36ac38b8e88b3e3935 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-09 12:45:52 |
Source code size: | 277 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 190 / 266 |
Version history: | 1 change(s) |
Referenced in: | [show references] |