SpringGUI

introduction    download    reference    examples    faq


Reference

Name

isElement()

Examples

// Checks whether there is an element named "myButton" and removes it if it finds one.
if ( gui.isElement("myButton") ) {
  gui.remove("myButton"); // remove the Button.
}

Description

Checks whether an element by the specified name exists.

Syntax

boolean result = gui.isElement(name);

Parameters

String name The name of the element to look for.

Returns

true if the element could be found.


back to the top of the page


tinkering with codetools and docsscrapbookabout