Mega Code Archive

 
Categories / Java / Swing JFC
 

Determine if currently painting labels

import javax.swing.JSlider; public class Main {   public static void main(String[] argv) throws Exception {     JSlider slider = new JSlider();     boolean b = slider.getPaintLabels();      // Paint labels at the major ticks - 0, 25, 50, 75, and 100     slider.setPaintLabels(true);   } }