The link posted and the topic of this thread are two different issues. If you'd like to be able to select SmartDashboard options through your controller, than you would have to make your own widget that interacts with JInput in order to get the behavior desired.
If you are using SFX, than see here
https://wpilib.screenstepslive.com/s...rol-using-java to create a custom widget
If you are using smartdashboard, see here
http://firstforge.wpi.edu/sf/wiki/do...iki/Extensions
(I'd recommend creating a custom dashboard using Swing and networktables.jar but that would be decently difficult. Not as difficult as creating a custom widget, though).
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)