Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Set font for JSlider?

  Asked By: Carolina    Date: Feb 27    Category: Java    Views: 1493
  

I'm using JSlider, with setPaintLabels set to true. This shows the
values below the slider (10, 20, etc). I want these labels to use a
smaller font size, but using JSlider.setFont() doesn't seem to work.
By default, if I don't set the font and call JSlider.getFont(), it is
null, which isn't the case for other controls such as JComboBox. Does
any one know how I can set the font for the JSlider labels?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Set font for JSlider? Or get search suggestion and latest updates.




Tagged: