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 the difference between applications and applets?
What is jlabel java swing?
What are the components of java swing?
What are the different components that are used to show a container?
What is swing components in java?
What is swing container?
What is jfc swing in java?
Is swing still used?
What is awt and swing?
Why should the implementation of any swing callback (like a listener) execute quickly?
What is the use of swing in java?
What is frame in java swing?