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
When we should go for codebase in applet?
What is event in java swing?
What method is used to specify a container's layout?
What are the different components that are used to show a container?
What is the role of java swing?
What is awt and swing in java?
How to align components in java swing?
What are the benefits of swing over awt?
How to link two forms in java swing?
Why swing components are called lightweight components?
Why are swings considered lightweight?
Which package is needed for swing components?
Hello Everyone.. I m trying to develop a java swing application where i can display a doc file Jeditorpane or Jtextpane.
What are swings?
Explain the difference between swing and jsf.