[Top] [Prev] [Next] [Bottom]
Page 25 out of 38 total pages , Page 24 out of 37 pages in this chapter

Java Code Generation

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.

Java Resources

Event handling

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.

Equivalent resources

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

actionEvent equivalents

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

New AWT Components

The Builder Xcessory Palette now includes the components Java AWT components ScrollPane and PopupMenu.

Label Component Limitation

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.

Adding Events to a Java Dialog

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.



[Top] [Prev] [Next] [Bottom]
Page 25 out of 38 total pages , Page 24 out of 37 pages in this chapter

info@ics.com
Copyright © 1998, Integrated Computer Solutions, Inc. All rights reserved.