Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+15 votes

I am having troubles on part b of the Drawing App, although I have added code into the MainWindowController class, the CanvasEditor class, and the SelectionTool class respectively, the key does not seem to be triggered. How can I do it?

asked in CSC 305 Fall 2024 by (1.1k points)

1 Answer

+5 votes

I suggest you use the " setOnKeyPressed " method to handle the event.

answered by (743 points)
+5

Thank you Leroy, actually someone else has asked this before me and Professor Stonedahl gave us a pretty clear answer.

...