oh my... I feel so stupid now :-S... Before this I only knew how to do this by extending ActionListener, which ate a lot of time.. Thanks