borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.control
java.lang.Object +----borland.jbcl.control.FontChooser
Variables Constructors Properties Methods Event Listeners
Implements WindowListener, EventListener
The FontChooser component enables the user to specify the font style.
Relationship of the JBCL font chooser classes:
public static final int CANCEL = ButtonDialog.CANCEL
public static final int OK = ButtonDialog.OK
protected Array aList
protected FontChooserDialog dialog
protected Frame frame
protected int result
protected String title
protected Font value
public FontChooser()Creates a new font chooser dialog box with frame=null and no title bar text. No initial font is selected.
public FontChooser(java.awt.Frame frame)Creates a new font chooser dialog box, specifying the frame as the parent, with no title bar text. No initial font is selected.
Parameters:
public FontChooser(java.awt.Frame frame, java.lang.String title)Creates a new font chooser dialog box using the specified frame and title bar text. No initial font is selected.
Parameters:
public FontChooser(java.awt.Frame frame, java.lang.String title, java.awt.Font value)Creates a new font chooser dialog. If a frame is specified, the dialog is created using FontChooserDialog.
Parameters:
public Frame getFrame() public void setFrame(java.awt.Frame frame)The parent frame for the font chooser dialog box.
public int getResult() public void setResult(int i)
The result property stores which button of the dialog box was clicked.
public String getTitle() public void setTitle(java.lang.String title)The title text of the font chooser dialog box, usually shown in the title bar.
public Font getValue() public void setValue(java.awt.Font value)The active font value. Typically, this value determines the font that is initially displayed when the dialog box appears.
public boolean isVisible() public void setVisible(boolean visible)Makes the dialog box visible.
public void show()Displays a font chooser dialog box (if the default constructor was invoked), registers itself as a window listener for the dialog box, and shows the dialog.
public void addActionListener(java.awt.event.ActionListener l) public void removeActionListener(java.awt.event.ActionListener l)