I want to make a personnel project in which I change the crappy CUI console screen of BlueJ to GUI based using only core java. The logic I formulated is that I'll take the position of the cursor and check for a button press. If the button press is done when the cursor is above some specific pixels, It will call a specific method. Taking coordinates is easy but the problem lies in checking for button presses. Methods I saw online were using JFrame but I don't want to use it since I want the backdrop to be the console screen.
Example - User clicks on a piece of text like go to next page, The logic is that when his cursor clicks on that set of pixels(Let's say it expands from (450,135) to (500,150) It will call a method containing the reference of let's say the next page of the book)
Capture.jpg
Thanks,