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

5
LINES

< > BotCompany Repo | #1034094 // bindJLabelToLiveValueVerbose

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

Libraryless. Click here for Pure Java version (5591L/31K).

static <A extends JLabel> A bindJLabelToLiveValueVerbose(A label, LiveValue lv) {
  bindLiveValueListenerToComponent(label, lv,
    -> setText(label, printQuoted(lv := strOrNull(lv!))));
  ret label;
}

Author comment

Began life as a copy of #1016975

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034094
Snippet name: bindJLabelToLiveValueVerbose
Eternal ID of this version: #1034094/3
Text MD5: ed1904f068cd33569610ce02cdaf6a3b
Transpilation MD5: 305f82d294a59a41e70714043160dcff
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-21 19:50:38
Source code size: 205 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 132 / 196
Version history: 2 change(s)
Referenced in: [show references]