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.
agreed, in icon / imageicon isn't implemented mouse or key event
best of options use un_decorated jbutton
Comments
Post a Comment