Java Programming A Swing button can have more than one actio

Java Programming

A Swing button can have more than one action listener.

is this True or False?

Solution

Answer: False

A Swing button can have only one action listener and one action event. these are ActionListener and ActionEvent respectively.

We can handle that action by using beow method that is provided by ActionListner.

public void actionPerformed(ActionEvent e){

}

Java Programming A Swing button can have more than one action listener. is this True or False?SolutionAnswer: False A Swing button can have only one action list

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site