Explain the below Statement
if(ae.getSource()==b1)

Answer Posted / nilam

getSource() method will return triggered component, so basically this statement means this condition will be true if triggered component is b1(b1 can be any component like button).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is swing framework in java?

558


What is an on stage swing?

549


What is actionlistener in java swing?

541


What is jlabel java swing?

533


How to move from one page to another in java swing?

623






What is swing package in java?

524


Which method of the Component class is used to set the position and size of a component?

570


What is java awt and swing?

608


What is event in java swing?

519


What is swing components in java?

521


Which swing methods are thread-safe?

646


What are the components of swing?

539


How to perform action on button in java swing?

506


What is java swing application?

534


What is java swing package?

513