Explain the below Statement
if(ae.getSource()==b1)
Answer Posted / 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 |
Post New Answer View All Answers
What is awt and swing in java?
What is sling swing?
What is swing delegation event model in java?
What is the design pattern that java uses for all swing components ?
How does accessibility works in swings?
What is the use of java swing?
What is jpanel in java swing with example?
Is swing part of core java?
How to reload a jframe in java swing?
What is container in java swing?
What is the class in swing to change the appearance of the frame in runtime?
What are heavy weight components ?
What are the containers available in swing?
In what context should the value of swing components be updated directly?
What is swing api?