multiple windows and eventlisteners
Was unsure wether to post this under new or advanced, but this is probably the right place..
I've got a main window (JFrame with extended JPanel) and I am opening a second one (extends JFrame).
The second one (referred to henceforth as ColorPicker) basically consists of a buffered image whereas the main window is more complicated.
The ColorPicker window is created from the main window and is passed the main window's JPanel
as an argument so as to enable communication back and forth.
Both windows implement MouseListener, the main one's works but not the ColorPicker's.
I suspect the problem stems from the ColorPicker not being given focus, but being new to GUI's I haven't a clue how to deal with it.
I implemented a WindowListener in ColorPicker and it doesn't do anything either. Any assistance will be much appreciated! :)
[I don't mind posting the code/files if it would simplify matters]