Libraryless. Click here for Pure Java version (4789L/27K).
1 | static AutoCloseable tempSetToolTip(JComponent c, S text) { |
2 | if (c == null) null; |
3 | S oldText = getToolTip(c); |
4 | setToolTip(c, text); |
5 | ret autoCloseable { setToolTip(c, oldText); }; |
6 | } |
Began life as a copy of #1023958
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033906 |
Snippet name: | tempSetToolTip |
Eternal ID of this version: | #1033906/3 |
Text MD5: | 4eeb4b7603aae2abb6f16291a03d9786 |
Transpilation MD5: | bff6d5d0fd0833abc4da55025ca9aaa9 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-09 20:02:41 |
Source code size: | 190 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 111 / 162 |
Version history: | 2 change(s) |
Referenced in: | [show references] |