Java Compliance Failure Dialog
The Java Compliance Failure Dialog lists all aspects of the
design which cannot be reproduced in Java code.
The buttons at the bottom of the dialog perform the following functions:
- Go to
- Pressing this button causes the widget selected in the Java
Compliance Failure Dialog to become selected in your design. If the
widget is in a Shell other than the currently viewed one or it is in a
folded section of the hierarchy, the view changes so that the widget can
be seen.
- Next
- Pressing this button moves the selection in the Java Compliance
Failure Dialog to the next item in the list of offending widgets.
- Fix
- Pressing this button fixes whatever is causing the compliance failure
for the selected widget in the dialog. This button is only enabled when
it is possible for the compliance failure to be fixed automatically in
this way.
- Close
- This button closes the dialog.
- Help
- This button displays this help
Design Restrictions for Java Code Generation
The following is a list of user interface features which cannot be carried
over to Java code:
- A file selection box with a parent which is not a shell.
- A file selection box which has a work area.
- A file selection box which is a class.
A file selection box must have a shell as a parent; Java only has a
modal file selection dialog.
- A widget which is a class between a menubar and a shell.
This restriction is imposed so that the shell can find out what its
menubar is.
- More than one menubar in a shell
In Java, a shell may only have one menubar.
- A cascade button has no menu.
Because there is no equivalent to a cascade button in Java (menus are
added directly to menubars), a cascade button on its own is
meaningless
- The design contains a popup menu.
Java does not support popup menus.
- There is a multi-line string in a menubar.
Multi-line strings are not supported in menubar. They are supported
elsewhere.
- A link source is not a class.
The source of a link must be a class in Java.
- A callback source is not within a class.
This is a restriction of the event model in AWT 1.0
and may be improved in later versions as this model develops.
- A pixmap in a menu.
- A Label in a menu.
- A menu in the main window of an applet
The three items above are not supported in Java.
See also: