K
Knute Johnson
How do I pass along a mouse event that is collected in a MouseListener
to the parent component? Component.processMouseEvent() is protected so
you can't call that from the listener.
I have a panel that has a bunch of components on it that I detect mouse
clicks on. The panel is in a dialog. I want to signal the dialog to
close after the user clicks on the on one of the components and that
mouse event is processed.
Would you use a PropertyChangeListener for this and call
firePropertyChange() from the mouse listener?
Thanks,
to the parent component? Component.processMouseEvent() is protected so
you can't call that from the listener.
I have a panel that has a bunch of components on it that I detect mouse
clicks on. The panel is in a dialog. I want to signal the dialog to
close after the user clicks on the on one of the components and that
mouse event is processed.
Would you use a PropertyChangeListener for this and call
firePropertyChange() from the mouse listener?
Thanks,