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
What are swing components in java?
Explain how to render an html page using only swing.
What are the components of swing in java?
What is Java Swing?
Why are swing components called lightweight components?
What is the use of jfc in java swing?
Why swing is used in java?
What is the difference between invokeAndWait() and invokeLater()?
Which layout does swing use by default?
What is the difference between applications and applets?
How to move from one page to another in java swing?
How to reload a jframe in java swing?
What is content pane in swing?
Which package is needed for swing components?
What are the different types of layout managers used in swing?