All Packages Class Hierarchy This Package Previous Next Index
Class vnr.awt.FontChooser
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----vnr.awt.FontChooser
- public class FontChooser
- extends JComponent
- implements ActionListener
-
FONT_PROPERTY_NAME
-
-
fontList
-
-
fontSize
-
-
fontStyle
-
-
propertySupport
-
-
FontChooser()
-
-
actionPerformed(ActionEvent)
- respond to combo box selections
-
addPropertyChangeListener(PropertyChangeListener)
- add a new font listener
-
firePropertyChange(String, Object, Object)
- fire a font changed message to all registered listeners
-
getCurrentFont()
-
-
removePropertyChangeListener(PropertyChangeListener)
- remove a listener from the component's list
-
setCurrentFont(Font)
-
change current font to new one and set drop downs accordingly
fontList
protected JComboBox fontList
fontSize
protected JComboBox fontSize
fontStyle
protected JComboBox fontStyle
propertySupport
protected PropertyChangeSupport propertySupport
FONT_PROPERTY_NAME
public static final String FONT_PROPERTY_NAME
FontChooser
public FontChooser()
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener pcl)
- add a new font listener
- Overrides:
- addPropertyChangeListener in class JComponent
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener pcl)
- remove a listener from the component's list
- Overrides:
- removePropertyChangeListener in class JComponent
firePropertyChange
public void firePropertyChange(String name,
Object old,
Object $new)
- fire a font changed message to all registered listeners
- Overrides:
- firePropertyChange in class JComponent
actionPerformed
public void actionPerformed(ActionEvent ae)
- respond to combo box selections
setCurrentFont
public void setCurrentFont(Font f)
- change current font to new one and set drop downs accordingly
getCurrentFont
public Font getCurrentFont()
All Packages Class Hierarchy This Package Previous Next Index