This functionality is supported only if you are using the Classic Agent.
There is a timing issue in Java that causes a delay when Java applications or applets render objects. To ensure that the Exists method detects Java objects, call it with a timeout parameter. You might need to experiment with different timeout values to find the one that works best for your system configuration, and application or applet.
For example Verify (JavaAwtPushButton.Exists(1), TRUE).