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

5
LINES

< > BotCompany Repo | #1026709 // setRelativeSliderValue

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

Libraryless. Click here for Pure Java version (2322L/15K).

1  
svoid setRelativeSliderValue(JSlider slider, double value) {
2  
  if (slider != null) swing {
3  
    slider.setValue(iround(value*slider.getMaximum()));
4  
  }
5  
}

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: 184 / 268
Referenced in: [show references]