Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you swing an applet?

1029


What is swing control in java?

988


What are the advantage of swing over awt?

963


What is swing container?

886


What is swing?

969


What are the advantages of swing?

902


What are the advantages of java swing over angular?

888


What are the different types of layout managers used in swing?

909


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

874


How to render an html page using only swing.

937


What are heavy weight components ?

991


What is swing in java javatpoint?

966


Why does JComponent have add() and remove() methods but Component does not?

939


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

952


What is an on stage swing?

975