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
What is swing framework in java?
What is an on stage swing?
What is actionlistener in java swing?
What is jlabel java swing?
How to move from one page to another in java swing?
What is swing package in java?
Which method of the Component class is used to set the position and size of a component?
What is java awt and swing?
What is event in java swing?
What is swing components in java?
Which swing methods are thread-safe?
What are the components of swing?
How to perform action on button in java swing?
What is java swing application?
What is java swing package?