Reputation: 451
Is there any method or property for consistently identifying objects using Java Access Bridge?
I tried using AccessibleContextInfo name property. But most of the time this returns an empty string in our client applications (e.g Root Pane, Layered Pane, Panel and EditBox).
Upvotes: 0
Views: 330
Reputation: 201
Is there keyword instanceof? If yes you can use that to identifing Objects.
if(obj instanceof Object) {
Object newObj = (Object) obj;
//Do what you need to do...
}
Upvotes: 0