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

4
LINES

< > BotCompany Repo | #1034911 // setText_neverEmpty - set text of JLabel to " " if it's empty (to preserve layout height)

JavaX fragment (include)

1  
svoid setText_neverEmpty(JLabel c, O text) {
2  
  S s = spaceIfEmpty(strUnnull(text));
3  
  setText(c, s);
4  
}

Author comment

Began life as a copy of #1003310

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034911
Snippet name: setText_neverEmpty - set text of JLabel to " " if it's empty (to preserve layout height)
Eternal ID of this version: #1034911/1
Text MD5: 95901c2f4c6063edb33512559890e8e6
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-14 20:08:39
Source code size: 105 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 132 / 148
Referenced in: [show references]