Libraryless. Click here for Pure Java version (6546L/36K).
svoid addTabWithToolTip(JTabbedPane tabs, S title, S toolTip, Component c) { if (tabs == null) ret; swing { addTab(tabs, title, c); if (nempty(toolTip)) tabs.setToolTipTextAt(tabCount(tabs)-1, toolTip); } } svoid addTabWithToolTip(JTabbedPane tabs, S title, S toolTip, Swingable c) { addTabWithToolTip(tabs, title, toolTip, wrap(c)); }
Began life as a copy of #1023390
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033912 |
Snippet name: | addTabWithToolTip |
Eternal ID of this version: | #1033912/2 |
Text MD5: | 52e720cc5ff9742598826d32d5a2570d |
Transpilation MD5: | 780e36109dfe5990c86ffc75176485ad |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-10 18:25:39 |
Source code size: | 369 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 134 / 192 |
Version history: | 1 change(s) |
Referenced in: | [show references] |