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
Is swing still used in java?
Which window contains the swing controls?
Why are swing components called lightweight?
What is swing delegation event model in java?
What are the differences between Swing and AWT?
Is swing part of core java?
What is the difference between invokeAndWait() and invokeLater()?
Which package is needed for swing components?
What is javax swing joptionpane?
Is swing an adjective?
What is the purpose of serialization in swings?
Is swing thread-safe?
Why is model-view-controller architecture used in swing?
What is pane in swing?
Why swings are used in java?