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 |
Is swing still used in java?
What is import javax swing in java?
What is import javax swing * used for?
In what context should the value of swing components be updated directly?
What is event in java swing?
What are the components of swing?
How to move from one page to another in java swing?
Why should any swing call back implementation execute quickly?
What are all the components used in Swing?
What is the use of java swing?
What are the various components of swing?
What's java swing?