Go to Post I quickly realized that, "hey, I'm looking at a wonderful piece of technology that defies gravity" and I calmed down quite a bit. - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-02-2015, 14:42
Brrch Brrch is offline
Registered User
AKA: Alon
FRC #2212 (Spikes)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2013
Location: Israel
Posts: 4
Brrch is an unknown quantity at this point
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   Spotlight this post!  
Unread 20-02-2015, 19:16
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
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   Spotlight this post!  
Unread 21-02-2015, 03:08
Brrch Brrch is offline
Registered User
AKA: Alon
FRC #2212 (Spikes)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2013
Location: Israel
Posts: 4
Brrch is an unknown quantity at this point
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   Spotlight this post!  
Unread 21-02-2015, 11:57
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
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.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
  #5   Spotlight this post!  
Unread 21-02-2015, 12:03
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Creating custom controls to the SmartDashboard SFX

Quote:
Originally Posted by Brrch View Post
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 View Post
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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