The Java code generator shipped with this release is not the final version. An update to the code generator will be shipped shortly after the general release. Contact ICS Technical Support or your sales representative for more information.
Event handling has changed in Java 1.1, particularly in naming conventions and the way of handling events. The event handling resources from Java 1.0.2 are available on the Resource Editor along with the new resources from Java 1.1.
If you read a UIL file from Builder Xcessory 4.0 into Builder Xcessory 5.0 and generate Java code, the code generated from Builder Xcessory 5.0 changes from 1.0.2 compliant code to 1.1 compliant code. The Java 1.0.2 resources are available in the Resource Editor for backward compatibility.
The following table lists the obsolete resources in Java 1.0.2 and their equivalent resources in Java 1.1:
|
JAVA 1.0.2 Resource
|
JAVA 1.1 Resource
|
|---|---|
|
actionEvent
|
See "actionEvent equivalents"
|
|
gotFocus
|
focusGained
|
|
lostFocus
|
focusLost
|
|
keyPress
|
keyPressed
|
|
keyRelease
|
keyReleased
|
|
keyAction
|
keyTyped
|
|
keyActionRelease
|
not supported
|
|
listSelect
|
addItemStateChanged
|
|
listDeselect
|
addItemStateChanged
|
|
mouseDrag
|
mouseDragged
|
|
mouseMove
|
mouseMoved
|
|
mouseEnter
|
mouseEntered
|
|
mouseExit
|
mouseExited
|
|
mouseDown
|
mousePressed
|
|
mouseUp
|
mouseReleased
|
|
scrollLineUp
|
adjustmentValueChanged
|
|
scrollLineDown
|
adjustmentValueChanged
|
|
scrollPageUp
|
adjustmentValueChanged
|
|
scrollPageDown
|
adjustmentValueChanged
|
|
scrollAbsolute
|
adjustmentValueChanged
|
|
windowDestroy
|
windowClosed
|
|
windowMoved
|
windowActivated
|
|
windowIconify
|
windowIconified
|
|
windowDeiconify
|
windowDeiconified
|
The actionEvent resource in Java 1.0.2 has different equivalents in Java 1.1 for different components:
|
Component
|
JAVA 1.1 Equivalent
|
|---|---|
|
checkbox
choice
checkboxmenuitem
menu
|
itemStateChanged
|
|
filedialog
|
No longer supported
|
|
All other components
|
actionPerformed
|
The Builder Xcessory Palette now includes the components Java AWT components ScrollPane and PopupMenu.
The AWT Label component does not support multiline labels. Although Builder Xcessory allows you to apply a multiline label and displays it correctly, the generated code does not produce a multiline label.
To add events to a Java Dialog, you must subclass the Dialog (you cannot directly instantiate the Dialog class). Builder Xcessory automatically subclasses the AwtDialog.