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

10
LINES

< > BotCompany Repo | #1016976 - jAnimation_liveValueText

JavaX fragment (include)

static JLabel jAnimation_liveValueText(fS imageID, final LiveValue<S> text) {
  ret swing(func -> JLabel {
    JLabel label = new SmoothLabel(imageIcon(imageID));
    label.setText(strOrNull(text!));
    bindJLabelToLiveValue(label, text);
    label.setVerticalTextPosition(SwingConstants.BOTTOM);
    label.setHorizontalTextPosition(SwingConstants.CENTER);
    ret label;
  });
}

Author comment

Began life as a copy of #1007786

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016976
Snippet name: jAnimation_liveValueText
Eternal ID of this version: #1016976/4
Text MD5: 9cbc7d6bcafd83907aca4a9cccc71979
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-04 00:28:01
Source code size: 389 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 267 / 320
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1016976 & http://1016976.tinybrain.de