https://github.com/levigo/documentplatform-swing-hierarchy-inspection
A swing component and context hierarchy inspection tool
https://github.com/levigo/documentplatform-swing-hierarchy-inspection
Last synced: 2 months ago
JSON representation
A swing component and context hierarchy inspection tool
- Host: GitHub
- URL: https://github.com/levigo/documentplatform-swing-hierarchy-inspection
- Owner: levigo
- Created: 2012-11-07T11:02:11.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2021-05-27T12:12:39.000Z (about 5 years ago)
- Last Synced: 2026-01-01T23:18:58.852Z (6 months ago)
- Language: Java
- Size: 74.2 KB
- Stars: 3
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Hierarchy Inspection
====================
Provides a tree view of the components in a Java Swing-based application. If this application uses the jadice GUI Context framework, it is possible to display Context contents and state information.
Requirements
------------
* Maven 3 for building the project
* levigo-utils swing module
* This module is part of the levigo jadice application suite for which a valid license is necessary.
* This module provides the flex tree feature which is used to build the hierarchy tree
Usage
-----
* Download the source and integrate it as a project into your IDE. Alternatively, run a build via maven and put the resulting jar on your application's class path.
* Instantiate and show Inspection Frames for every Component you would like to inspect.
Example
-------
Produce an inspection frame for a regular Swing Application JFrame and set it visible. As it is the case for any Swing code, this example needs to be run on the Event Dispatch Thread.
```java
JFrame frameToBeInspected = /* ... */;
Frame hierarchyFrame = new FrameBuilder()
.forType(ApplicationType.SWING)
.named("Swing Hierarchy")
.sized(800, 600)
.buildFor(frameToBeInspected);
hierarchyFrame.setVisible(true);
```