The inspector is a simple java Object inspector. It allows you to inspect objects at runtime, seeing their public, protected and private variables.
The inspector is being released under the gpl , the source and java .class files are available in a zip file. Simply unzip the file and add it to your class path. The package is com.geocities.sbridges_geo.debug.
The Inspector provides two class methods
Both of these open a window looking something like the following,
The second method does not return until the inspector window is closed. You can also create an Inspector panel directly by creating a new Inspector instance. The inspector extends JPanel, allowing it to be embeded in other swing applications.
The program uses the reflection and swing API's and requires jdk1.2 or greater.
The values that the inspector shows are created dynamically. That is if you open an inspector window on an object, and change the values of the objects fields, then when you display the fields in the inspector the new values will be used.
At times the structure of an object will change. For instance if you have a Component field called comp, with a reference to a Button object when the inspector window is created, then change comp to be a JButton, the hierarchy of the inspector tree will change. If this happens the inspector tree will collapse and refresh itself.
Version 0.2
Last Updated: Oct 5, 2002 (fix for jdk1.4)
Report bugs to