SHARE
TWEET

Untitled

a guest Jan 18th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. slider.addChangeListener(new ChangeListener() {
  2.  
  3.             @Override
  4.             public void stateChanged(ChangeEvent event) {
  5.                 JSlider source = (JSlider)event.getSource();
  6.                 if (!source.getValueIsAdjusting()) {
  7.                     int value = (int)source.getValue();
  8.                     int size = freeChartPanel.getDots().size();
  9.                     size = size*value/100;
  10.                     freeChartPanel.drawCurrentSize(size);
  11.                 }
  12.  
  13.             }
  14.         });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top