SmartDashboard CommandButton

We are using buttons on smartdashboard to trigger preset shooter commands. However, the buttons are quite small for use on a touch screen. When I right click on it, I can change to CommandButton, which allows resizing. The problem, it no longer works. How do I integrate CommandButton into our program (java). Right now we are using:

SmartDashboard.putData("Back Pyramid", new PresetShot(16.0, 4500.0));

Try making an “InternalButton” that links to the command, and then add the InternalButton to the SmartDashboard using putData.