|
JAPI 0.9.0 Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent net.sf.japi.swing.font.FontChooser
public class FontChooser
Class for letting the user choose a font. There are two possibilities to use this class:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
FontChooser()
Create a new FontChooser. |
Method Summary | |
---|---|
void |
setSelectedFont(Font selectedFont)
Set the selected font. |
static Font |
showChooseFontDialog(Component parent)
Show a dialog. |
static Font |
showChooseFontDialog(Component parent,
Font font)
Show a dialog. |
void |
stateChanged(ChangeEvent e)
Invoked when the target of the listener has changed its state. |
void |
valueChanged(ListSelectionEvent e)
Called whenever the value of the selection changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FontChooser()
Method Detail |
---|
public void setSelectedFont(Font selectedFont)
public void valueChanged(ListSelectionEvent e)
valueChanged
in interface ListSelectionListener
e
- the event that characterizes the change.public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
e
- a ChangeEvent objectpublic static Font showChooseFontDialog(Component parent)
parent
- Parent component
@Nullable public static Font showChooseFontDialog(Component parent, Font font)
parent
- Parent compnentfont
- Font to modify
|
JAPI Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |