|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Creating custom controls to the SmartDashboard SFX
I tried to add my custom control to the SmartDashboard SFX. I only understood how this was done using FXML, but when I tried to create a custom control using Java and this tutorial I got stuck, because it seems I don't have the required components (The tutorial might be out of date).
My question is, what is the simplest way to create my custom control (with multiple variables)? |
|
#2
|
||||
|
||||
|
Re: Creating custom controls to the SmartDashboard SFX
It would be easier for you to post what you're having trouble with since that tutorial is pretty much all that's available in terms of what you're asking.
Also, have you just considered making a custom JavaFX dashboard using NetworkTables? Much easier, IMO. |
|
#3
|
|||
|
|||
|
Re: Creating custom controls to the SmartDashboard SFX
I want the control to be added to the Smartdashboard itself and not to a new window. Is it possible with Networktables?
|
|
#4
|
|||
|
|||
|
Re: Creating custom controls to the SmartDashboard SFX
You might be better off working with the old SmartDashboard. It is written in Java (not JRuby), so the source is actually is actually readable (sorry, I don't like Ruby) and it has better documentation. I was able to figure out how to make widgets by looking at the already existing ones and adapting them.
|
|
#5
|
||||
|
||||
|
Re: Creating custom controls to the SmartDashboard SFX
Quote:
Hey I like ruby, but combining Java with Ruby and JRuby is another story, if it would've stuck to just javaFX than it would've been nicer IMO. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|