Explain the below Statement
if(ae.getSource()==b1)
Answers were Sorted based on User's Feedback
Answer / nilam
getSource() method will return the component which is triggered, so basically this statement means if condition will be true if triggered component is b1(button b1).
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
What is sling swing?
What are the advantages of swing?
How to perform action on button in java swing?
What are the advantages of the event-delegation model over the event-inheritance model?
What is the purpose of transferhandler class?
How to change button color in java swing?
What is import javax swing jframe?
Why swing is used in java?
How to link two forms in java swing?
Why swing is better than awt?
Why should the implementation of any swing callback (like a listener) execute quickly?
What is the use of jfc in java swing?