Explain the below Statement
if(ae.getSource()==b1)

Answers were Sorted based on User's Feedback



Explain the below Statement if(ae.getSource()==b1)..

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

Explain the below Statement if(ae.getSource()==b1)..

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

Post New Answer

More Swing Interview Questions

Write a program to include the internal frame in swing.

0 Answers  


Why should the implementation of any swing callback (like a listener) execute quickly?

0 Answers  


what is difference between checked and unchecked exception plz explain examples ?

5 Answers   Fujitsu,


Why would you use swingutilities.invokeandwait or swingutilities.invokelater?

0 Answers  


What is the use of double buffering in swings?

0 Answers  






How to align components in java swing?

0 Answers  


What are swing controls?

0 Answers  


What is the design pattern that java uses for all swing components ?

0 Answers  


Is java swing a framework?

0 Answers  


What is jlabel java swing?

0 Answers  


What is awt and swing in java?

0 Answers  


please any one explain this project: Minimizing recovery state in geographic ad hoc routing

1 Answers   IBM,


Categories