java Programming Glossary: changelistener
How to increase/decrease brightness of image using JSlider in java? http://stackoverflow.com/questions/10208255/how-to-increase-decrease-brightness-of-image-using-jslider-in-java javax.swing.event.ChangeEvent import javax.swing.event.ChangeListener public class Main extends JPanel implements ChangeListener RescaleOp.. public class Main extends JPanel implements ChangeListener RescaleOp op PlanarImage image JAI.create fileload F java aimages.. JSlider 10 10 public Main bImage bufferedImage slider.addChangeListener this this.add slider BorderLayout.class this.add new JLabel..
Can Java Sound be used to control the system volume? http://stackoverflow.com/questions/14301618/can-java-sound-be-used-to-control-the-system-volume javax.swing.event.ChangeEvent import javax.swing.event.ChangeListener public class SoundMixer public Component getGui JPanel gui new.. 100 int volumeControl.getValue 100 ChangeListener listener new ChangeListener @Override public void stateChanged.. int volumeControl.getValue 100 ChangeListener listener new ChangeListener @Override public void stateChanged ChangeEvent e float val..
Rotate BufferedImage Inside JPanel http://stackoverflow.com/questions/15779877/rotate-bufferedimage-inside-jpanel javax.swing.event.ChangeEvent import javax.swing.event.ChangeListener public class TestRotateImage public static void main String.. slider.setValue 0 add slider BorderLayout.SOUTH slider.addChangeListener new ChangeListener @Override public void stateChanged ChangeEvent.. add slider BorderLayout.SOUTH slider.addChangeListener new ChangeListener @Override public void stateChanged ChangeEvent e repaint..
EventListenerList firing order http://stackoverflow.com/questions/2159803/eventlistenerlist-firing-order a different event class SubPanel extends JPanel implements ChangeListener private final JSlider slider new JSlider private final JLabel.. float value public SubPanel String name float value ChangeListener parent this.name name this.value value ... slider.addChangeListener.. parent this.name name this.value value ... slider.addChangeListener parent slider.addChangeListener this ... Addendum the discussion..
How to setSize of image using RescaleOp http://stackoverflow.com/questions/5864490/how-to-setsize-of-image-using-rescaleop javax.swing.event.ChangeEvent import javax.swing.event.ChangeListener @see http stackoverflow.com questions 5838842 @see http stackoverflow.com.. icon 0.75 final JSlider slider new JSlider slider.addChangeListener new ChangeListener @Override public void stateChanged ChangeEvent.. JSlider slider new JSlider slider.addChangeListener new ChangeListener @Override public void stateChanged ChangeEvent e int v slider.getValue..
Movable bars with value using java http://stackoverflow.com/questions/6067898/movable-bars-with-value-using-java javax.swing.event.ChangeEvent import javax.swing.event.ChangeListener @see http stackoverflow.com questions 6067898 public class SpinSlider.. new JSpinner final JSlider slider new JSlider slider.addChangeListener new ChangeListener @Override public void stateChanged ChangeEvent.. JSlider slider new JSlider slider.addChangeListener new ChangeListener @Override public void stateChanged ChangeEvent e JSlider s..
Smoothing a jagged path http://stackoverflow.com/questions/7218309/smoothing-a-jagged-path new JSlider JSlider.HORIZONTAL 0 255 104 tolerance.addChangeListener new ChangeListener public void stateChanged ChangeEvent ce.. 0 255 104 tolerance.addChangeListener new ChangeListener public void stateChanged ChangeEvent ce updateImages controls.add..
Efficiently color cycling an image in Java http://stackoverflow.com/questions/7544559/efficiently-color-cycling-an-image-in-java javax.swing.event.ChangeEvent import javax.swing.event.ChangeListener @see http stackoverflow.com questions 7546025 public class ColorCycler.. JSpinner new SpinnerNumberModel cp.colorCount 2 256 1 s.addChangeListener new ChangeListener @Override public void stateChanged ChangeEvent.. cp.colorCount 2 256 1 s.addChangeListener new ChangeListener @Override public void stateChanged ChangeEvent e cp.setColorCount..
Java raw audio output http://stackoverflow.com/questions/7782721/java-raw-audio-output Frames per Wavelength framesPerWavelength.addChangeListener new ChangeListener public void stateChanged ChangeEvent ce.. per Wavelength framesPerWavelength.addChangeListener new ChangeListener public void stateChanged ChangeEvent ce setUpSound JPanel.. volume.setToolTipText Volume of beep volume.addChangeListener new ChangeListener public void stateChanged ChangeEvent ce..
JTable how to change BackGround Color http://stackoverflow.com/questions/8197261/jtable-how-to-change-background-color javax.swing.event.ChangeEvent import javax.swing.event.ChangeListener import javax.swing.table.TableModel http stackoverflow.com questions.. table viewport tableViewPort.getViewport viewport.addChangeListener new ChangeListener @Override public void stateChanged ChangeEvent.. tableViewPort.getViewport viewport.addChangeListener new ChangeListener @Override public void stateChanged ChangeEvent e RECT table.getCellRect..
Drawing rectangle on a JPanel http://stackoverflow.com/questions/9258890/drawing-rectangle-on-a-jpanel javax.swing.event.ChangeEvent import javax.swing.event.ChangeListener class DisplayCanvas extends Canvas static boolean clip false.. 300 canvas.repaint public class SliderListener implements ChangeListener public SliderListener public void stateChanged ChangeEvent.. mintk slider.setPaintLabels true slider.addChangeListener ChangeListener new SliderListener public class display static..
|