0

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).

Stevoisiak
  • 23,794
  • 27
  • 122
  • 225
Britto Raj
  • 401
  • 1
  • 5
  • 15

1 Answers1

0

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...
}
Leolian
  • 181
  • 1
  • 1
  • 8