• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can we add listener to some component using reflection ?  RSS feed

 
Raj Purohit
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a third party swing application. I am trying to invoke it from my application by calling its main() method using reflection and it works!
Then I try to attach the mouseMotionListener to its components using reflection but cannot succeed. Is it possible to do that?? If yes then how?

Thanks in advance
 
Rob Camick
Ranch Hand
Posts: 2801
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer already provided in another forum where the question was cross posted.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
Raj Purohit
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I apologize for cross posting without specifying it and annoying those who are willing to help me.
Thanks Rob and Maneesh.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!