Saturday, January 5, 2019

How To Use JSlider In Java NetBeans - Java Swing Tutorial [With Source code]


This tutorial show you how get value from slider and how to set value to slider. You can get better idea about how use slider in project. here include video tutorial and source code.







Value get to Text_field 

 int y = Your_slider_name.getValue();
  textfield_name.setText(y+"");

Textbox value set to slider

  int x = Integer.parseInt(Text_field_name.getText());
   Slider_name.setValue(x);

No comments:

Post a Comment