I am working with a data-intensive application that displays many tabs and inside those tabs are different panels with related content. It is form-oriented, so the panels have a read mode and edit mode where the displayed content is switched to an input field. However, on some panels the fields do not have any content to enter. When a field does not have any content in read mode we just show an empty space. The main reason for doing this is so that we do not confuse the user by adding and removing fields.

My question is when the panel does not contain a lot of fields (2-3) and one of those fields is a checkbox what would be the best way to indicate to the user that the field is empty without displaying just white space?




Question: How to use Java to read/write data to/from the header pins?
Answer: That should be possible in Java, as referenced here. The library which is used is called rpi-gpio-java and is available at this URL. As stated in the notes, to make it work, please make sure your application is run as root.

Note: Above project rpi-gpio-java is no longer available on google code. Alternate option is PI4J