|
SpringGUI
introduction download reference examples faq
Reference
Name
|
getComponentByName()
|
Examples
|
// gets a TextField as a java.awt.TextField and sets it to password mode
java.awt.TextField tf = (java.awt.TextField) (gui.getComponentByName("myTextField"));
tf.setEchoChar('*');
|
Description
|
This method allows advanced users and people with experience in Java to access a GUI element as a java.awt.Component, thereby giving access to all of the awt's methods.
|
Syntax
|
Component comp = gui.getComponentByName(name);
|
Parameters
|
String name
|
The name of the element.
|
|
Returns
|
The Element as a java.awt.Component. null if it cannot be found.
|
Related
|
handleEvent()
absolute beginner in Processing?
isAdvancedMode()
|
back to the top of the page
|
| |
| | |