I've built a home project for my student house, including a 3.2" Touch Screen. The GUI for the program is written in Java, using the Swing framework. My program works perfectly on my Windows machine, however, when I transfer it to my Raspberry Pi, the start screen pops up but my JButtons won't work. I'm using ActionEvents and ActionPerformed to handle the buttons.
I thought that the touch screen would simulate the touch as a mouse click, but now I'm starting to question this. Does anybody know how to fix this? Use different handlers, buttons or something else?
I don't receive any other errors within my program, the screen and GUI just don't respond to the touch inputs whereas it does on the Windows machine. The rest of the Raspbian GUI does work with the touch screen.
I hope you guys have a solution