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 the components of swing?
What is jfc? What are the features of jfc?
Why are swings considered lightweight?
What are swing components in java?
What is swing gui in java?
How to create a swing gui in java?
What is content pane in swing?
What are the containers available in swing?
What is the relationship between clipping and repainting?
Why swing is used in java?
What is pane in swing?
Can a class be it?s own event handler? Explain how to implement this?
What are swings?
What are the features of swing in java?
Which is better swing or awt?