Pance Cavkovski has written a nice tutorial on programming a touchscreen interface, using the PiTFT screen, using JavaFX 8. His project involves an NFC plug-in board which scans your access card and then prompts you to enter a code, thus triggering a (virtual) door to open. Read all about it here.