Libraryless. Click here for Pure Java version (2322L/15K).
svoid setRelativeSliderValue(JSlider slider, double value) { if (slider != null) swing { slider.setValue(iround(value*slider.getMaximum())); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026709 |
Snippet name: | setRelativeSliderValue |
Eternal ID of this version: | #1026709/1 |
Text MD5: | 73237d4c622d57c516da827dda68799b |
Transpilation MD5: | 5a99459d46ace150ab61fedea18e1fd2 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-19 14:24:31 |
Source code size: | 156 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 183 / 265 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1031903 - setSliderValue |