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

6
LINES

< > BotCompany Repo | #1023958 // tempSetButtonText

JavaX fragment (include)

1  
static AutoCloseable tempSetButtonText(JButton btn, S text) {
2  
  if (btn == null) null;
3  
  S oldText = getText(btn);
4  
  setText(btn, text);
5  
  ret autoCloseable { setText(btn, oldText); };
6  
}

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: 193 / 227
Referenced in: [show references]