To preface, I think this is a misunderstand I’m having, and not any issue with particular Components, but man, is this tricky!
I want to get an event for clicking on a DrawableImage, but I can’t get mouseDown to produce anything. The code is as follows…
In the header:
Initializing the Parent Component:
Setting the mouse listener:
But when debugging, I don’t get so much as a peep from my debugger:
I do have both my Editor and some buttons listening to the mouse, and they work fine, but I was worried that having a mouse listener on the entire editor was blocking out my Graph Component. If that was true, though, I would also expect my buttons to be blocked by the Editor, which is not the case:
I also wonder if it’s because I’m using only setBoundingBox on the images in the Editor’s resize() function:
There’s gotta be something I’m doing wrong with having DrawableImages listen to Mouse Events, right? Thanks all for the help!