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 are differences between swing and awt?
What is swing gui in java?
Is swing an api?
What is frame in java swing?
What is the use of jcomponent class in swing?
What is the design pattern that java uses for all swing components ?
What is the purpose of serialization in swings?
What is the process of setting the layout manager?
Which swing methods are thread-safe?
When we should go for codebase in applet?
What does javax swing do?
What is difference between awt and swing?
Which is better swing or awt?
What are the advantage of swing over awt?
Why should any swing call back implementation execute quickly?