jbcl.control Package 

FontChooserDialog class

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----java.awt.Window
                           +----java.awt.Dialog
                                   +----javax.swing.JDialog
                                           +----com.borland.jbcl.control.ButtonDialog
                                                   +----com.borland.jbcl.control.FontChooserDialog

About the FontChooserDialog class

Variables  Constructors  Properties  Methods  Event Listeners

Implements ActionListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

The FontChooserDialog component displays a font dialog box that enables the user to specify a font.

The dialog box contains a list control that lists all the available fonts on the system. The user selects a font from the list. The user can also specify the size of the font and whether the font is boldfaced and/or italicized. The dialog box displays text that depicts how the font selections appear.

To display the dialog box at runtime, call the show() method or set the visible property to true. When the user selects a font, the selection is stored in the value property.

The dialog box has two buttons, OK and Cancel. Which button the user chooses to put away the dialog box is stored as the value of the result property. The title property contains the text that appears on the title bar of the dialog box's frame.

Usually you should use FontChooser instead of FontChooserDialog. FontChooser calls the constructor of FontChooserDialog, but you can work with FontChooser within the UI Designer and even display it at design time. You can set the properties of FontChooserDialog only at runtime.


FontChooserDialog variables

Variables implemented in this class

Variables implemented in com.borland.jbcl.control.ButtonDialog

Variables implemented in java.awt.Component

Variables implemented in javax.swing.JDialog

FontChooserDialog constructors

FontChooserDialog properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in com.borland.jbcl.control.ButtonDialog

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.awt.Dialog

Properties implemented in java.awt.Window

Properties implemented in java.lang.Object

Properties implemented in javax.swing.JDialog

FontChooserDialog methods

Methods implemented in com.borland.jbcl.control.ButtonDialog

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.awt.Dialog

Methods implemented in java.awt.Window

Methods implemented in java.lang.Object

Methods implemented in javax.swing.JDialog

FontChooserDialog event listeners


FontChooserDialog variables

panel

  protected FontChooserPanel panel

The FontChooserPanel to show in the FontChooserDialog.

value

  protected Font value

The font value currently selected in the dialog.


FontChooserDialog constructors

FontChooserDialog(java.awt.Frame)

  public FontChooserDialog(Frame frame)

Creates a FontChooserDialog object with no title in the title bar.

Parameters:

frame
The parent frame for the dialog.

FontChooserDialog(java.awt.Frame, java.lang.String)

  public FontChooserDialog(Frame frame, String title)
Creates a FontChooserDialog object with the given title bar string.

Parameters:

frame
The parent frame for the dialog.
title
The title-bar text.

FontChooserDialog(java.awt.Frame, java.lang.String, java.awt.Font)

  public FontChooserDialog(Frame frame, String title, Font value)
Creates a FontChooserDialog object with the given title bar string. The current font is selected by default, using Font value.

Parameters:

frame
The parent frame for the dialog.
title
The title-bar text.
value
The value of the font.


FontChooserDialog properties

value

 public Font getValue()
 public void setValue(Font value)
The value of the font.

FontChooserDialog event listeners

This class is a source for the following event sets.

action

 public synchronized void addActionListener(ActionListener l)
 public synchronized void removeActionListener(ActionListener l)

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener )
 public synchronized void removeComponentListener(java.awt.event.ComponentListener )

container

 public synchronized void addContainerListener(java.awt.event.ContainerListener )
 public synchronized void removeContainerListener(java.awt.event.ContainerListener )

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener )
 public synchronized void removeFocusListener(java.awt.event.FocusListener )

inputMethod

 public synchronized void addInputMethodListener(java.awt.event.InputMethodListener )
 public synchronized void removeInputMethodListener(java.awt.event.InputMethodListener )

key

 public synchronized void addKeyListener(java.awt.event.KeyListener )
 public synchronized void removeKeyListener(java.awt.event.KeyListener )

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener )
 public synchronized void removeMouseListener(java.awt.event.MouseListener )

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener )
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )

propertyChange

 public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener )
 public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )

window

 public synchronized void addWindowListener(java.awt.event.WindowListener )
 public synchronized void removeWindowListener(java.awt.event.WindowListener )