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

What is the difference between applications and applets?

0 Answers  


What is jlabel java swing?

0 Answers  


What are the components of java swing?

0 Answers  


What are the different components that are used to show a container?

0 Answers  


What is swing components in java?

0 Answers  






What is swing container?

0 Answers  


What is jfc swing in java?

0 Answers  


Is swing still used?

0 Answers  


What is awt and swing?

0 Answers  


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

0 Answers  


What is the use of swing in java?

0 Answers  


What is frame in java swing?

0 Answers  


Categories