![]() |
Tutorial on creating custom controls for SmartDashboard 2 (SFX)
Some of you have been asking how to create controls for the new SmartDashboard (sfx). Controls can be created either using java for complex controls or FXML for simpler visualizations. We created a tutorial that shows how to create a widget that models a pneumatic cylinder that is shown either in or out using a boolean value.
We'll add an example of a java-based widget soon. The tutorial can be found here: http://wpilib.screenstepslive.com/s/...rol-using-fxml Brad & Patrick |
Re: Tutorial on creating custom controls for SmartDashboard 2 (SFX)
Is there any kind of wysiwyg editor for this markup available, or barring that, a quick and easy way to see your changes as you iterate on them (like a standalone viewer with a refresh button?).
|
There is a tool from Oracle called Scene Builder that is freely available. We used it to create the FXML that is shown in the example. You can find it on the Oracle JavaFX page.
|
Re: Tutorial on creating custom controls for SmartDashboard 2 (SFX)
That's perfect, thanks Brad!
|
| All times are GMT -5. The time now is 02:33. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi