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 |
Why does JComponent have add() and remove() methods but Component does not?
What is the difference between swing and awt in java?
What are swings?
Why swing is better than awt?
Why swings are called lightweight components?
What do you mean by java swing?
What is jfc? What are the features of jfc?
What are the features of swing in java?
What is java panel swing?
What is awt and swing in java?
What class is at the top of the AWT event hierarchy?
Which layout does swing use by default?