Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Creating custom controls to the SmartDashboard SFX (http://www.chiefdelphi.com/forums/showthread.php?t=134973)

Brrch 20-02-2015 14:42

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)?

Arhowk 20-02-2015 19:16

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.

Brrch 21-02-2015 03:08

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?

Ben Wolsieffer 21-02-2015 11:57

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.

Arhowk 21-02-2015 12:03

Re: Creating custom controls to the SmartDashboard SFX
 
Quote:

Originally Posted by Brrch (Post 1447956)
I want the control to be added to the Smartdashboard itself and not to a new window. Is it possible with Networktables?

Hm? NetworkTables is a standalone application built for creating custom components (dashboards, controller drivers, etc). When you build a project with the SmartDashboard sources, NetworkTables is already included as well as the code to integrate with the SmartDashboard. As stated before, if you want to add a dashboard control you have to either follow the link you posted for sFX or http://firstforge.wpi.edu/sf/wiki/do...iki/Extensions for the old SmartDashboard.

Quote:

Originally Posted by lopsided98 (Post 1448004)
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)

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.


All times are GMT -5. The time now is 01:44.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi