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

13
LINES

< > BotCompany Repo | #1006379 // setToolTipText

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

Libraryless. Click here for Pure Java version (7678L/43K).

static <A extends JComponent> A setToolTipText(final A c, fO toolTip) {
  if (c == null) null;
  swing {
    S s = str_nullIfEmpty(toolTip);
    if (neq(s, c.getToolTipText()))
      c.setToolTipText(s);
  }
  ret c;
}

static <A extends JComponent> A setToolTipText(O toolTip, A c) {
  ret setToolTipText(c, toolTip);
}

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: 719 / 772
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1013224 - setToolTip - extended synonym of setToolTipText
#1020147 - getToolTip
#1024680 - noToolTip - clear toolTip of JComponent
#1033870 - setTextAndToolTip
#1034020 - setMultiLineToolTip