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

14
LINES

< > BotCompany Repo | #1006937 // jSpinner

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

Libraryless. Click here for Pure Java version (9688L/54K).

static JSpinner jSpinner() swing {
  new JSpinner s;
  ret jSpinnerCommitOnValidEdit(s);
}

static JSpinner jSpinner(int value) swing {
  new JSpinner s;
  s.setValue(value);
  ret jSpinnerCommitOnValidEdit(s);
}

static JSpinner jSpinner(int value default min, int min, int max) swing {
  ret jSpinnerCommitOnValidEdit(new JSpinner(new SpinnerNumberModel(value, min, max, 1)));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006937
Snippet name: jSpinner
Eternal ID of this version: #1006937/11
Text MD5: 4549cafccbeaa1c07aca06e668464285
Transpilation MD5: 9efae37ed55806cdcc75b70b6d786835
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-26 22:20:21
Source code size: 395 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 564 / 701
Version history: 10 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1009867 - jspinner - synonym of jSpinner
#1033691 - jListSpinner