JFontChooser
provides a pane of controls designed to allow a user to manipulate and select a font.
@javabean.class name="JFontChooser" shortDescription="A component that supports selecting a Font." stopClass="javax.swing.JComponent"
@javabean.attribute name="isContainer" value="Boolean.FALSE" rtexpr="true"
@javabean.icons mono16="JFontChooser16-mono.gif" color16="JFontChooser16.gif" mono32="JFontChooser32-mono.gif" color32="JFontChooser32.gif"
JFontChooser
class is a swing component for font selection. This class has JFileChooser
like APIs. The following code pops up a font chooser dialog. JFontChooser fontChooser = new JFontChooser(); int result = fontChooser.showDialog(parent); if (result == JFontChooser.OK_OPTION) { Font font = fontChooser.getSelectedFont(); System.out.println("Selected Font : " + font); }
|
|
|
|
|
|
|
|
|
|