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

5
LINES

< > BotCompany Repo | #1024534 // rangeSliderSetZeroToOneDoubleRange

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

Libraryless. Click here for Pure Java version (2889L/18K).

svoid rangeSliderSetZeroToOneDoubleRange(RangeSlider slider, int max, DoubleRange r) {
  if (slider != null && r != null) swing {
    slider.setValues(iround(r.start*max), iround(r.end*max));
  }
}

Author comment

Began life as a copy of #1024533

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024534
Snippet name: rangeSliderSetZeroToOneDoubleRange
Eternal ID of this version: #1024534/1
Text MD5: 900d891f2ef2eb90150a22937345bf62
Transpilation MD5: 4f4ea6d5d0e8026ae528d8d4dbd3e74a
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-17 16:58:32
Source code size: 201 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 241 / 330
Referenced in: [show references]