Pass font changes via setFont() along to internal components.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@822 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
//
|
//
|
||||||
// $Id: SimpleSlider.java,v 1.1 2002/07/25 23:21:33 mdb Exp $
|
// $Id: SimpleSlider.java,v 1.2 2002/09/04 01:28:09 shaper Exp $
|
||||||
|
|
||||||
package com.samskivert.swing;
|
package com.samskivert.swing;
|
||||||
|
|
||||||
|
import java.awt.Font;
|
||||||
|
|
||||||
import javax.swing.JLabel;
|
import javax.swing.JLabel;
|
||||||
import javax.swing.JPanel;
|
import javax.swing.JPanel;
|
||||||
import javax.swing.JSlider;
|
import javax.swing.JSlider;
|
||||||
@@ -43,6 +45,18 @@ public class SimpleSlider extends JPanel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// documentation inherited
|
||||||
|
public void setFont (Font font)
|
||||||
|
{
|
||||||
|
super.setFont(font);
|
||||||
|
|
||||||
|
if (_label != null) {
|
||||||
|
_label.setFont(font);
|
||||||
|
_slider.setFont(font);
|
||||||
|
_value.setFont(font);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates the label displayed to the left of the slider.
|
* Updates the label displayed to the left of the slider.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user