Can someone please help me, I just started teaching myself java and would like to expand my learning but with this I don't know where to start

So I have made a simple GUI for my tablet, it has 3 buttons(record, next, upload).

Click Record Button(id:recordButton): set the coordinates to x=0, y=0 the you move with the tablet
Click Next Button(id:nextButton): print out the current x and y coordinates to a text file
Click Upload Button(id:uploadButton): uploads text file to some server(probably will need JavaScript?)