Go to Post Maybe we should put one of those advisory signs: "Don't try this at home ... or at Robotics competitions" - Franchesca [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 31-01-2012, 20:54
sctjkc01 sctjkc01 is offline
Registered User
FRC #3181 (Pittsford Panthers)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: New York
Posts: 4
sctjkc01 is an unknown quantity at this point
SmartDashboard custom Widgets not appearing...

For some reason, I can't get the custom Widgets I'm adding to show up in the View>>Add list. I'm dropping the Netbeans-compiled JAR in the folder C:\Program Files\SmartDashboard\extensions. Am I doing something wrong? Is there some way to access the SmartDashboard's Java console to see if it was just bad coding on my part?
  #2   Spotlight this post!  
Unread 01-02-2012, 11:58
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: SmartDashboard custom Widgets not appearing...

Quote:
Originally Posted by sctjkc01 View Post
For some reason, I can't get the custom Widgets I'm adding to show up in the View>>Add list. I'm dropping the Netbeans-compiled JAR in the folder C:\Program Files\SmartDashboard\extensions. Am I doing something wrong? Is there some way to access the SmartDashboard's Java console to see if it was just bad coding on my part?
I have the exact same problem. I copied the source code word for word from the extension tutorial, added the JAR, and it still did not show up.
  #3   Spotlight this post!  
Unread 01-02-2012, 12:47
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: SmartDashboard custom Widgets not appearing...

Quote:
Originally Posted by sctjkc01 View Post
Is there some way to access the SmartDashboard's Java console to see if it was just bad coding on my part?
You can run a JAR in the Windows command prompt. Figure out where your Java binaries are, mine are in

Code:
C:\Program Files (x86)\Java\jdk1.6.0_16\bin
Then add these to your path.

Then open cmd.exe and

Code:
cd C:\Program Files\SmartDashboard
java -jar SmartDashboard.jar
  #4   Spotlight this post!  
Unread 02-02-2012, 18:57
sctjkc01 sctjkc01 is offline
Registered User
FRC #3181 (Pittsford Panthers)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: New York
Posts: 4
sctjkc01 is an unknown quantity at this point
Re: SmartDashboard custom Widgets not appearing...

On closer inspection, this is an issue on their part... that is, whoever made the SmartDashboard:

Code:
Searching Folder:.\lib
Adding Jar:.\lib\jcommon-1.0.16.jar
Adding Jar:.\lib\jfreechart-1.0.13.jar
Adding Jar:.\lib\junit-4.8.2.jar
Adding Jar:.\lib\NetworkTable_Client.jar
Searching Folder: .\extensions\lib
Adding Jar:.\extensions\lib\javacpp.jar
Adding Jar:.\extensions\lib\javacv-windows-x86.jar
Adding Jar:.\extensions\lib\javacv.jar
Adding Jar:.\extensions\lib\WPIJavaCV.jar
Searching Folder:.\extensions
Adding Jar:.\extensions\3181SmartWidgets.jar
Adding Jar:.\extensions\WPICameraExtension.jar
Searching Jar:.\extensions\3181SmartWidgets.jar
Custom Widget:VerticalBar
Searching Jar:.\extensions\WPICameraExtension.jar
Custom Static Widget:WPICameraExtension
Custom Static Widget:WPILaptopCameraExtension
Our Jar is .\extensions\3181SmartWidgets.jar, and it's obviously searching the Jar, and it's obviously finding the class (which is also an effective copy-paste from the tutorial) however it's not showing up in the menu!
  #5   Spotlight this post!  
Unread 02-02-2012, 19:09
Hjelstrom's Avatar
Hjelstrom Hjelstrom is offline
Mentor
FRC #0987 (High Rollers)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2005
Location: Las Vegas
Posts: 146
Hjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond repute
Re: SmartDashboard custom Widgets not appearing...

Quote:
Our Jar is .\extensions\3181SmartWidgets.jar, and it's obviously searching the Jar, and it's obviously finding the class (which is also an effective copy-paste from the tutorial) however it's not showing up in the menu!
Ok, I don't know if this will help but we struggled a bit with this the other day too. Here are some thoughts:

Does your custom widget inherit from "Widget" or "StaticWidget"? The only ones that show up in the menu are "StaticWidgets". To use "Widgets", have your robot send some data, then convert the widget that is automatically created into yours.

It took us a few trys to figure out where to put the extension JAR file but it looks like you've got that solved.

We were initially using NetBeans 7.1. JAR files we created with it did not work for us with the SmartDashboard. The docs say to use 6.9 but it was hard to find it on the NetBeans site.

Even though we had some hurdles to overcome, we're extremely happy with the SmartDashboard. It is terrific.
  #6   Spotlight this post!  
Unread 02-02-2012, 21:58
sctjkc01 sctjkc01 is offline
Registered User
FRC #3181 (Pittsford Panthers)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: New York
Posts: 4
sctjkc01 is an unknown quantity at this point
Re: SmartDashboard custom Widgets not appearing...

Oooh, OK. Now I'm understanding it clearly.

Yeah, we've got a Widget. Now I see why.
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 09:18.

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