Package com.ms.awt |
![]() Previous |
![]() Microsoft Packages |
![]() Index |
![]() Next |
public class ChooseFont extends Dialog { // Constructor public ChooseFont(Container parent); // Methods public FontX getChosenFont(); public boolean handleEvent(Event event); }
Displays a dialog box from which the user can choose a font from the current system selection.
public ChooseFont(Container parent)Creates the ChooseFont dialog box.
Parameter Description parent The parent container. See Also: Container
public FontX getChosenFont()Retrieves the selected font. If the user canceled the dialog box (by pressing the Cancel button), the font returned is null.
Return Value:
Returns the selected font.
See Also: FontX
public boolean handleEvent(Event event)This method is called when any event occurs inside the ChooseFont dialog box.
Return Value:
Return true to indicate that it has successfully handled the action; or false if the event that triggered the action should be passed up to the component's parent.
Parameter Description event The event. Remarks:
Overrides handleEvent in class Component.
See Also: Event