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

6
LINES

< > BotCompany Repo | #1035157 // setSpinnerMax

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

Libraryless. Click here for Pure Java version (7631L/43K).

// sets min and value to 0
svoid setSpinnerMax(JSpinner s, int max) {
  if (s != null) swing {
    s.setModel(new SpinnerNumberModel(0, 0, max, 1));
  }
}

Author comment

Began life as a copy of #1018838

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1035157
Snippet name: setSpinnerMax
Eternal ID of this version: #1035157/2
Text MD5: a9928754bfd7936339656a8003bb45e1
Transpilation MD5: ccacc5da4b896e61c80df2b2bc05f86f
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-02 21:24:13
Source code size: 159 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 165 / 227
Version history: 1 change(s)
Referenced in: [show references]