Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to use RMI in my application. So using the interface is compulsory. I want to force the developer to implement event. So I want to declare the events methods in my interface. How can I do this? Any helps would be appreciated.
Posted

 
Share this answer
 
import java.awt.*; ->for both item events &
action events
create new action listener.
Object.addActionListener(new
ActionListener()
{
public void actionPerformed(ActionEvent e)
{
actions 1; action 2;
}
});
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900