haii rahl_mkar, thanks for the some answers, i don't really understand the concept with protected etc... In the page from Applied Reasoning, there is a statement: button.enableEvents(AWTEvent.ACTION_EVENT_MASK) is wrong because this method is protected, so can only be called by a subclass. Is this method not declared in Component Class, and Button is a subclass of Component? rgds zhewen