Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
Instrumentation of JComponent
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Thomas Leplus, post: 4132870"] I just want to understand how instrumentation work in Java, get a feeling of what it can do and how easy it is to use. I prefer to learn by example so I thought I would use this as an opportunity to create a simple tool that I always wished I had for my day job: a tool that would allow me to figure out quickly where in the code of an application is a given piece of GUI. What I mean is that the application I work on has thousands of window, frames and panel classes. So as you can imagine, it is sometimes hard to figure out let say what is the class name of the panel you are looking at. My idea was to create an instrumentation agent that would add some code to JComponent.getToolTipText() so that if I let my mouse a few seconds over a GUI element, it would the tooltip's owner class, the class of the parent panel and so on. There is probably easier ways to do all that but I'd like to do it myself from scratch using instrumentation as an exercise. And so far I find instrumentation interesting but I am stuck because my agent never get access to the one class I'd like to instrument, JComponent! Thanks, Tom [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Instrumentation of JComponent
Top