Libraryless. Click here for Pure Java version (7678L/43K).
1 | static <A extends JComponent> A setToolTipText(final A c, fO toolTip) { |
2 | if (c == null) null; |
3 | swing { |
4 | S s = str_nullIfEmpty(toolTip); |
5 | if (neq(s, c.getToolTipText())) |
6 | c.setToolTipText(s); |
7 | } |
8 | ret c; |
9 | } |
10 | |
11 | static <A extends JComponent> A setToolTipText(O toolTip, A c) { |
12 | ret setToolTipText(c, toolTip); |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006379 |
Snippet name: | setToolTipText |
Eternal ID of this version: | #1006379/6 |
Text MD5: | b5b236dd75f1760f589586f4502f3e35 |
Transpilation MD5: | 5d82862271406d8ac8aef7451eed9db2 |
Author: | stefan |
Category: | javax / gui [swing] |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-11 18:19:31 |
Source code size: | 332 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 712 / 765 |
Version history: | 5 change(s) |
Referenced in: | [show references] |