You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MultiButton mb = new MultiButton();
mb.addActionListener(new ActionListener(){
@Override
public void actionPerformed(ActionEvent evt){
Component c = evt.getComponent();
}
});
The Component c is an instance of Button (the emblem button enclosing in the mb MultiButton) instead of the mb instance.
If I would like to retrieve the MultiButton mb that I have triggered, I have to do that : MultiButton theMButtonTriggered = evt.getComponent().getParent().getParent();