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

Is swing still used in java?

0 Answers  


What is import javax swing in java?

0 Answers  


What is import javax swing * used for?

0 Answers  


In what context should the value of swing components be updated directly?

0 Answers  


What is event in java swing?

0 Answers  






What are the components of swing?

0 Answers  


How to move from one page to another in java swing?

0 Answers  


Why should any swing call back implementation execute quickly?

0 Answers  


What are all the components used in Swing?

1 Answers  


What is the use of java swing?

0 Answers  


What are the various components of swing?

0 Answers  


What's java swing?

0 Answers  


Categories