Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1033906 // tempSetToolTip

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4789L/27K).

static AutoCloseable tempSetToolTip(JComponent c, S text) {
  if (c == null) null;
  S oldText = getToolTip(c);
  setToolTip(c, text);
  ret autoCloseable { setToolTip(c, oldText); };
}

Author comment

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: 61 / 91
Version history: 2 change(s)
Referenced in: [show references]