Methods | This Package | All Packages

Button Class

Encapsulates a Windows button control.

Component
  |
  +--Control
    |
    +--Button

package com.ms.wfc.ui

public class Button
extends
Control
implements
IButtonControl

Remarks

To set the text on a button, use the setText method. To allow the user to choose the button by pressing ENTER, pass the name of the button to the setAcceptButton method of the form that contains the button. To allow the user to choose the button by pressing ESC, pass the button name to the setCancelButton method of the form that contains the button. To specify the value that the form that containing the button will return, use the setDialogResult method.