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

5
LINES

< > BotCompany Repo | #1033703 // bindLiveValueToSpinner

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

Libraryless. Click here for Pure Java version (9645L/53K).

static JSpinner bindLiveValueToSpinner(IVarWithNotify<Int> lv, JSpinner spinner) {
  onChange(spinner, -> lv.set(intFromSpinner(spinner)));
  lv.onChange(-> setSpinnerValue(spinner, lv!));
  ret spinner;
}

Author comment

Began life as a copy of #1018839

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033703
Snippet name: bindLiveValueToSpinner
Eternal ID of this version: #1033703/3
Text MD5: 65b7142ceda88704e7347e6753ad3f5e
Transpilation MD5: d32f165edbf36ab8c5c2795f3858c56e
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-07-25 21:30:59
Source code size: 209 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 76 / 123
Version history: 2 change(s)
Referenced in: [show references]