StatusBar.addPanel

Overview | Methods | This Package | All Packages

StatusBar.addPanel

Adds a panel to the end of the status bar.

Syntax

public int addPanel( StatusBarPanel statusBarPanel )

Parameters

statusBarPanel

A StatusBarPanel object that you want to add to the status bar.

Return Value

Returns an integer that represents the zero-based index of the added panel.

Exceptions

WFCException thrown if the panel you want to add is already contained in another control.

ArrayIndexOutOfBoundsException thrown if the specified index is not valid.

Remarks

You can add panels to a status bar to display more than one type of information. This method automatically adds a panel to the end of the status bar. To add a panel in a specific location on the status bar, use the insertPanel method. To replace an existing panel, use the setPanel method. To set the text for a panel, use the StatusBarPanel.setText method.

See Also   removePanel