Package com.ms.awt Previous
Previous
Microsoft Packages
Microsoft Packages
Index
Index
Next
Next

Class ChooseFont

Constructor , Methods

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.


Constructor


ChooseFont

public ChooseFont(Container parent)

Creates the ChooseFont dialog box.

ParameterDescription
parent The parent container.

See Also: Container


Methods


getChosenFont

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


handleEvent

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.

ParameterDescription
event The event.

Remarks:

Overrides handleEvent in class Component.

See Also: Event



Top© 1996 Microsoft Corporation. All rights reserved.