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

6
LINES

< > BotCompany Repo | #1023958 // tempSetButtonText

JavaX fragment (include)

static AutoCloseable tempSetButtonText(JButton btn, S text) {
  if (btn == null) null;
  S oldText = getText(btn);
  setText(btn, text);
  ret autoCloseable { setText(btn, oldText); };
}

Author comment

Began life as a copy of #1023337

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023958
Snippet name: tempSetButtonText
Eternal ID of this version: #1023958/1
Text MD5: 5016e19991f6a03b0cc10cf668662442
Author: stefan
Category: javax / android
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-14 11:50:05
Source code size: 191 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 194 / 228
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1033903 - tempSetButtonImage
#1033906 - tempSetToolTip