Explain the below Statement
if(ae.getSource()==b1)
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Is java swing a framework?
Name the method, to expand & collapse nodes in a Jtree?
What is swing and awt in java?
What are the features of JFC?
What are swing controls?
What is the mean of swing?
What is JTable and what is its purpose?
What is the role of java swing?
What are heavyweight components? What is lightweight component?
What is java swing application?
How to change button color in java swing?
What is the difference between swing and applet?