Adding a UI Button

A project log for Barnabas Robotics ArduBlock Upgrade

An upgrade for ArduBlock

nateNate 07/26/2019 at 01:590 Comments

To add a physical UI button that has no function, there are two files to be edited. 


- must be edited in two places. The first adds your button as a JButton while also calling to obtain the text that will appear on the button. The second adds it to "buttons" which is a location on the JPanel. simply defines visible text.

The current objective is to add a button that will change the board type. To do this, a new listener must be added which will be called by and run its task. The other listeners call functions in and all run without seeming to communicate with arduino. They appear self sufficient with just ardublock.