SpringGUI

introduction    download    reference    examples    faq


Reference

Name

isVisible(), setVisible()

Examples

// If button 1 is invisible, set button 2 to invisible as well.
if ( !gui.isVisible("myButton1") ) {
  gui.setVisible("myButton2", false);
}

Description

isVisible queries whether an element is visible. setVisible sets this attribute.

Syntax

boolean result = gui.isVisible(name);
gui.setVisible(name, value);

Parameters

String name The name of the element.
boolean value The new state of the element.

Returns

isVisible():
true if the element can be found and is visible.
setVisible():
true if the element can be found.


back to the top of the page


tinkering with codetools and docsscrapbookabout