官术网_书友最值得收藏!

Using the ScenicView tool to study JavaFX scenegraph 

ScenicView is a great tool made and supported by one of the JavaFX developers, Jonathan Giles. It can be downloaded from http://fxexperience.com/scenic-view/.

ScenicView benefits from open JavaFX architecture and the SceneGraph paradigm. It allows the traversing SceneGraph of any JavaFX application to run on the same machine and check the properties of every Node.

Working with ScenicView is very simple:

  • Run your JavaFX application
  • Call java -jar scenicView.jar

ScenicView will automatically find your app and show its structure in a window like the following:

On the left, you can see the scenegraph, and on the right, you can review all properties of the selected node. 

Note how the boundsInParent and layoutBounds properties are additionally marked right inside your application:

The next feature is node detection; by clicking Ctrl + Shift + S, ScenicView will detect which node is located at the mouse coordinates, provide a brief description, and select it in the ScenicView on click:

This feature provides immense value while debugging complex JavaFX applications. 

主站蜘蛛池模板: 石阡县| 舟曲县| 杭锦后旗| 克什克腾旗| 柳州市| 十堰市| 崇仁县| 上杭县| 满洲里市| 满城县| 加查县| 平和县| 扎鲁特旗| 康定县| 诸暨市| 犍为县| 桐城市| 巴彦县| 定结县| 嘉义县| 峨眉山市| 武义县| 富顺县| 正定县| 如东县| 曲靖市| 天镇县| 郸城县| 山阴县| 靖江市| 滨州市| 巴青县| 石柱| 巴彦淖尔市| 绥芬河市| 濮阳县| 会东县| 永寿县| 察隅县| 湟中县| 阿瓦提县|