I need a class 'container b' which consists of a varying number of 'thing a's. A class, simply so I can use the mouse to discover which 'thing a' within 'container b'
I have a fixed number of 'container b's
I think I need a Array of 'container b's so I can reference... [b,a]
When the mouse is over a 'thing a' I need the number of 'thing a' within 'container b' and also which 'container b'.
Should I be looking at an ArrayList of 'container b's?
I have been using the examples with the G4P Library and note that although windows can be created I cannot find a way to close them; i.e. the X button does nothing.
I would have presumed that an example would include closing and so...
I would like to know if it is possible to associate a mouse click event with an object (because it was clicked over it).
I do not mean use the window coords and calculate whether it was over the object, so, I would presume that the coding for the mouse would have to be part of the object's class code.
The end result would therefore be that the mouse coords returned would naturally be relative to the object, without any calculations.
Perhaps?? I could have made that simpler by asking whether object's can have mouse events as well as properties and methods.