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 is an event in Swing?
Why are swings considered lightweight?
What is pane in swing?
Is swing thread-safe?
How to create image slideshow in java swing?
What is swing gui?
What are swings awt?
What is java swing application?
What is java swing gui?
What method is used to specify a container's layout?
What is java swing used for?
Is swing part of core java?
How to create a swing gui in java?
Why does JComponent have add() and remove() methods but Component does not?
What are the swing components in java?