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 java swing gui?
Why do we use swing in java?
How is parsing html used in swing?
How does accessibility works in swings?
What is awt and swing in java?
What is the base class for all swing components?
Can a class be it?s own event handler? Explain how to implement this?
What is the design pattern that java uses for all swing components ?
What is java panel swing?
Is swing an adjective?
What are all the components used in Swing?
Is swing part of core java?