1 | static bool replaceTab(final JTabbedPane tabs, fS name, final Component c) { |
2 | if (tabs == null) false; |
3 | ret swing(func -> Bool { |
4 | int idx = tabs.indexOfTab(name); |
5 | if (idx < 0) false; |
6 | tabs.setComponentAt(idx, wrap(c)); |
7 | true; |
8 | }); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010336 |
Snippet name: | replaceTab - replace tab in JTabbedPane by name |
Eternal ID of this version: | #1010336/3 |
Text MD5: | dce7c839bfb3092d8fea5676a1c30eaa |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-11 23:22:04 |
Source code size: | 256 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 489 / 531 |
Version history: | 2 change(s) |
Referenced in: | [show references] |