Creo™ Schematics 4.0 Help Center > Customizing Creo Schematics Using Java APIs > About Calling Java from Labels
  
About Calling Java from Labels
You can call Java from labels when specific information is to be presented, for example, the first three characters of a name. When a Java method is called from a label, a shape or sheet is passed as the first parameter to the method and a string is returned. Subsequent parameters specified in the method call are passed as strings. A Java method is specified in the label format in a manner that is similar to internal functions, except that the curly brackets, { }, are used instead of square brackets, [ ].