JGET-LAF-FONT
The JGET-LAF-FONT function returns the handle of a given font retrieved from the current LAF. It’s program duty to destroy the font handle when it’s not more necessary.
This is the list of the known font entries that you can inquire:
• Button.font
• CheckBox.font
• CheckBoxMenuItem.acceleratorFont
• CheckBoxMenuItem.font
• ColorChooser.font
• ComboBox.font
• EditorPane.font
• FileChooser.listFont
• FormattedTextField.font
• InternalFrame.titleFont
• Label.font
• List.font
• Menu.acceleratorFont
• Menu.font
• MenuBar.font
• MenuItem.acceleratorFont
• MenuItem.font
• OptionPane.buttonFont
• OptionPane.font
• OptionPane.messageFont
• Panel.font
• PasswordField.font
• PopupMenu.font
• ProgressBar.font
• RadioButton.font
• RadioButtonMenuItem.acceleratorFont
• RadioButtonMenuItem.font
• ScrollPane.font
• Slider.font
• Spinner.font
• TabbedPane.font
• Table.font
• TableHeader.font
• TextArea.font
• TextField.font
• TextPane.font
• TitledBorder.font
• ToggleButton.font
• ToolBar.font
• ToolTip.font
• Tree.font
• Viewport.font
Syntax:
CALL "J$GETFROMLAF" USING JGET-LAF-FONT lafEntry fontHandle GIVING returnCode |
Parameters:
JGET-LAF-FONT | Constant | |
lafEntry | PIC X(n) or string literal | Specifies the name of the font resource you want to inquire. |
fontHandle | USAGE HANDLE OF FONT | Receives handle of the requested font |
Return code:
returnCode can be any signed numeric data item.
-1 | Operation failed. |
0 | Operation successful. |