Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TangoraBox/ComponentInspector
Java Desktop (JavaFX and Swing) Component Inspector on mouse over
https://github.com/TangoraBox/ComponentInspector
component component-inspector desktop inspector java javafx node swing
Last synced: 25 days ago
JSON representation
Java Desktop (JavaFX and Swing) Component Inspector on mouse over
- Host: GitHub
- URL: https://github.com/TangoraBox/ComponentInspector
- Owner: TangoraBox
- License: lgpl-3.0
- Created: 2020-06-02T05:51:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-08T14:17:05.000Z (over 2 years ago)
- Last Synced: 2024-02-13T10:02:01.189Z (10 months ago)
- Topics: component, component-inspector, desktop, inspector, java, javafx, node, swing
- Language: Java
- Homepage:
- Size: 7.96 MB
- Stars: 23
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeJavaFX - Component-Inspector - A tool to help you inspect the location and properties of certain components in a window hierarchy. (Libraries, Tools and Projects)
- aboutfx - Component-Inspector - tools` | A tool to help to inspect the location and properties of a component in a window hierarchy | (Community / Tools)
README
# Java Desktop (JavaFX and Swing) Component Inspector
> A Tool for help you to inspect the location and some properties (see features section) of the component under mouse, in a window hierarchy
[![License: LGPL v3](https://img.shields.io/badge/License-LGPLv3-blue.svg)](https://opensource.org/licenses/LGPL-3.0)
[![Build Status](https://travis-ci.com/TangoraBox/ComponentInspector.svg?branch=master)](https://travis-ci.com/TangoraBox/ComponentInspector)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=com.tangorabox%3Acomponent-inspector&metric=alert_status)](https://sonarcloud.io/dashboard?id=com.tangorabox%3Acomponent-inspector)## Features
- CSS class name in javafx node components [![css-class](doc/images/css-class.png)]()
- Field name of component declaration in parent (when possible) [![css-class](doc/images/field-name.png)]()
- The inspected component is highlighted _(since v1.1.0)_
---## Usage
> The inspector window is only shown if you hold down the CONTROL key when you move the mouse
---
## Example Demo
![Example Demo](doc/images/demo.gif)
## ScreenShots
***JavaFX Component Inspector***
[![FXInspector](doc/images/FXInspector.png)]()
***Swing Component Inspector***
[![FXInspector](doc/images/SwingInspector.png)]()
***Swing inside JavaFX***
[![FXInspector](doc/images/JavaFXWithSwingNode.png)]()
***JavaFX inside Swing***
[![FXInspector](doc/images/SwingWithJavaFXPanel.png)]()
---
## How to use
Simple, one line of code to handle all:
***Java FX Example***
Add this line in the `public void start(Stage primaryStage)` of your main JavaFX class that extends `Application`:
```java
FXComponentInspectorHandler.handleAll();
```***Swing Example***
Add this line in the `public static void main(String[] args)` of your application launch class:
```java
SwingComponentInspectorHandler.handleAll();
```---
## Library import with Maven
The artifacts have been published to maven central:
### FXComponentInspector
***Java 11+***
```xml
com.tangorabox
component-inspector-fx
1.1.0```
***Java 8***
```xml
com.tangorabox
component-inspector-fx
1.1.0-java8```
---
### SwingComponentInspector
***Java 11+***
```xml
com.tangorabox
component-inspector-swing
1.1.0```
***Java 8***
```xml
com.tangorabox
component-inspector-swing
1.1.0-java8```
---
## Contributing
> If you want to contribute to upgrade this project with new features or fixing bugs, you're welcome, please make a pull request.
---
## Team
| **GaRzY** |
| :---:
| [![GaRzY](https://avatars0.githubusercontent.com/u/10849239?s=200)](https://github.com/garzy)
| `github.com/garzy` |---
## Support
Reach out to me at one of the following places!
- Mail to [[email protected]](mailto:[email protected])
---
## License
[![License: LGPL v3](https://img.shields.io/badge/License-LGPLv3-blue.svg)](https://opensource.org/licenses/LGPL-3.0)