Britto Raj
Britto Raj

Reputation: 451

How do I identify objects with the Java Access Bridge?

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

Answers (1)

Leolian
Leolian

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

Related Questions