GetButton Method (IToolBar)
Returns the button with the specified text.
C# Syntax
IToolBarButton GetButton( 
   string text
)

Parameters

text
The text.
Example
// Clicking the JEditorPane button displays the editor test object.
toolBar.GetButton("JEditorPane").Press();