skip to main content

Controls Reference : JAVA-BEAN : Introduction to Java-Beans

Introduction to Java-Beans
Definition files
Since they usually consist of several classes, definition files are often deployed as jar files. An isCOBOL program must contain appropriate definition files to access their events and properties. A tool, called cpgen, is provided to automatically create the definition files. A separate definition file will be created for each class to which the java-bean extends, directly or indirectly.
Example:
To use the JCalendar bean (com.toedter.calendar.JCalendar in jcalendar.jar), you must create the definition files with one of the following commands:
or
Since the sructure of JCalendar is
the following definition files will be created:
object.def
component.def
container.def
jcomponent.def
jpanel.def
jcalendar.def
The resulting definition files will contain event definitions
78 COMPONENT-KEYPRESSED VALUE 1024581858.
78 COMPONENT-KEYRELEASED VALUE 274742396.
78 COMPONENT-KEYTYPED VALUE 1303301483.
and the list of the available properties

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left