java - Swing: MouseListener only on ImageIcon not JLabel -


i have java swing application jframe containing jlabel containing imageicon. want monitor mouse entering/exiting imageicon.

for use addmouselistener method of jlabel event entered & exited thrown when enter/exit application's window, not imageicon.

i see no addmouselistener method imageicon.

how can this?

i have java swing application jframe containing jlabel containing imageicon. want monitor mouse entering/exiting imageicon.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -