JSlider.isFilled : JSlider « javax.swing « Java by API






JSlider.isFilled

 
import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JSlider;

public class MainClass {
  public static void main(String args[]) throws Exception {
    JFrame frame = new JFrame("Filled Slider");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JSlider js1 = new JSlider();
    js1.putClientProperty("JSlider.isFilled", Boolean.TRUE);
    JSlider js2 = new JSlider();
    js2.putClientProperty("JSlider.isFilled", Boolean.FALSE);
    frame.getContentPane().add(js1, BorderLayout.NORTH);
    frame.getContentPane().add(js2, BorderLayout.SOUTH);
    frame.setSize(300, 200);
    frame.setVisible(true);
  }

}

           
         
  








Related examples in the same category

1.Slider.horizontalThumbIcon
2.new JSlider(int min, int max)
3.new JSlider(int min, int max, int value)
4.new JSlider(int orientation)
5.new JSlider(int orientation, int min, int max, int value)
6.JSlider: addChangeListener(ChangeListener l)
7.JSlider: getExtent()
8.JSlider: getMaximum()
9.JSlider: getMinimum()
10.JSlider: getPaintTicks()
11.JSlider: getSnapToTicks()
12.JSlider: getValue()
13.JSlider: getValueIsAdjusting()
14.JSlider: setExtent(int extent)
15.JSlider: setInverted(boolean b)
16.JSlider: setLabelTable(Dictionary labels)
17.JSlider: setMajorTickSpacing(int v)
18.JSlider: setMaximum(int maximum)
19.JSlider: setMinimum(int minimum)
20.JSlider: setMinorTickSpacing(int v)
21.JSlider: setOrientation(int orientation)
22.JSlider: setPaintLabels(boolean t)
23.JSlider: setPaintTicks(boolean t)
24.JSlider: setPaintTrack(boolean b)
25.JSlider: setPreferredSize(Dimension preferredSize)
26.JSlider: setSnapToTicks(boolean b)
27.JSlider: setToolTipText(String s)
28.JSlider: setValue(int n)
29.extends JSlider