borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.control
FontChooserDialog class
java.lang.Object
+----java.awt.Component
+----java.awt.Container
+----java.awt.Window
+----java.awt.Dialog
+----borland.jbcl.control.ButtonDialog
+----borland.jbcl.control.FontChooserDialog
About the FontChooserDialog class
Variables Constructors Properties Methods Event Listeners
Implements MenuContainer, ActionListener, KeyListener, ImageObserver, Serializable, EventListener
The FontChooserDialog class provides a dialog box that enables the user to specify the font style and settings.
This component is a dialog wrapper for the FontChooserPanel component, and is used in the UI Designer.
Relationship of the JBCL font chooser classes:
FontChooserDialog variables
Variables implemented in this class
FontChooserDialog constructors
FontChooserDialog properties
*Read-only properties **Write-only properties
Properties implemented in this class
FontChooserDialog methods
- action(java.awt.Event, java.lang.Object)
- add(java.awt.PopupMenu)
- bounds()
- checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- checkImage(java.awt.Image, java.awt.image.ImageObserver)
- contains(int, int)
- contains(java.awt.Point)
- createImage(int, int)
- createImage(java.awt.image.ImageProducer)
- disable()
- disableEvents(long)
- dispatchEvent(java.awt.AWTEvent)
- enable()
- enable(boolean)
- enableEvents(long)
- getFontMetrics(java.awt.Font)
- gotFocus(java.awt.Event, java.lang.Object)
- handleEvent(java.awt.Event)
- hide()
- imageUpdate(java.awt.Image, int, int, int, int, int)
- inside(int, int)
- keyDown(java.awt.Event, int)
- keyUp(java.awt.Event, int)
- list()
- list(java.io.PrintStream)
- list(java.io.PrintWriter)
- location()
- lostFocus(java.awt.Event, java.lang.Object)
- mouseDown(java.awt.Event, int, int)
- mouseDrag(java.awt.Event, int, int)
- mouseEnter(java.awt.Event, int, int)
- mouseExit(java.awt.Event, int, int)
- mouseMove(java.awt.Event, int, int)
- mouseUp(java.awt.Event, int, int)
- move(int, int)
- nextFocus()
- paintAll(java.awt.Graphics)
- prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
- prepareImage(java.awt.Image, java.awt.image.ImageObserver)
- printAll(java.awt.Graphics)
- processComponentEvent(java.awt.event.ComponentEvent)
- processFocusEvent(java.awt.event.FocusEvent)
- processKeyEvent(java.awt.event.KeyEvent)
- processMouseEvent(java.awt.event.MouseEvent)
- processMouseMotionEvent(java.awt.event.MouseEvent)
- remove(java.awt.MenuComponent)
- repaint()
- repaint(int, int, int, int)
- repaint(long)
- repaint(long, int, int, int, int)
- requestFocus()
- reshape(int, int, int, int)
- resize(int, int)
- resize(java.awt.Dimension)
- setBounds(int, int, int, int)
- setLocation(int, int)
- setSize(int, int)
- show(boolean)
- size()
- toString()
- transferFocus()
- update(java.awt.Graphics)
- add(java.awt.Component)
- add(java.awt.Component, int)
- add(java.awt.Component, java.lang.Object)
- add(java.awt.Component, java.lang.Object, int)
- add(java.lang.String, java.awt.Component)
- addImpl(java.awt.Component, java.lang.Object, int)
- countComponents()
- deliverEvent(java.awt.Event)
- doLayout()
- getComponent(int)
- getComponentAt(int, int)
- getComponentAt(java.awt.Point)
- insets()
- invalidate()
- isAncestorOf(java.awt.Component)
- layout()
- list(java.io.PrintStream, int)
- list(java.io.PrintWriter, int)
- locate(int, int)
- minimumSize()
- paint(java.awt.Graphics)
- paintComponents(java.awt.Graphics)
- preferredSize()
- print(java.awt.Graphics)
- printComponents(java.awt.Graphics)
- processContainerEvent(java.awt.event.ContainerEvent)
- remove(int)
- remove(java.awt.Component)
- removeAll()
- removeNotify()
- validate()
- validateTree()
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(java.awt.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(java.awt.Frame frame, java.lang.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(java.awt.Frame frame, java.lang.String title, java.awt.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(java.awt.Font value)
The value of the font. These values are stored in the FontChooserPanel font
variable.
FontChooserDialog event listeners
This class is a source for the following event sets.
For information on the standard AWT event sets, see Standard Java events.
action
public synchronized void addActionListener(java.awt.event.ActionListener l)
public synchronized void removeActionListener(java.awt.event.ActionListener l)
component
public synchronized void addComponentListener(java.awt.event.ComponentListener l)
public synchronized void removeComponentListener(java.awt.event.ComponentListener l)
container
public synchronized void addContainerListener(java.awt.event.ContainerListener l)
public void removeContainerListener(java.awt.event.ContainerListener l)
focus
public synchronized void addFocusListener(java.awt.event.FocusListener l)
public synchronized void removeFocusListener(java.awt.event.FocusListener l)
key
public synchronized void addKeyListener(java.awt.event.KeyListener l)
public synchronized void removeKeyListener(java.awt.event.KeyListener l)
mouse
public synchronized void addMouseListener(java.awt.event.MouseListener l)
public synchronized void removeMouseListener(java.awt.event.MouseListener l)
mouseMotion
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l)
public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
window
public synchronized void addWindowListener(java.awt.event.WindowListener l)
public synchronized void removeWindowListener(java.awt.event.WindowListener l)