| 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 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:
Returns true if the action triggered by the event has completed successfully, or false if it should be passed to the component's parent.
Parameter Description event Event inside the ChooseFont dialog box. Remarks:
Overrides handleEvent in class Component.
See Also: Event
| © 1997 Microsoft Corporation. All rights reserved. Terms of Use. |