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 on stage swing?
How to reload a jframe in java swing?
What is the difference between swing and awt?
Which method is used for setting security in applets?
What is difference between swing and awt?
What's java swing?
What are the swing components?
What is the use of jcomponent class in swing?
What is swing framework in java?
What method is used to specify a container's layout?
Which swing methods are thread-safe?
What is awt and swing?
How to create a swing gui in java?
What is a component in swing?
Why are swing components called lightweight components?