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

What is an event in Swing?

1123


Why are swings considered lightweight?

1086


What is pane in swing?

994


Is swing thread-safe?

1042


How to create image slideshow in java swing?

1164


What is swing gui?

985


What are swings awt?

990


What is java swing application?

1043


What is java swing gui?

967


What method is used to specify a container's layout?

1041


What is java swing used for?

1045


Is swing part of core java?

1053


How to create a swing gui in java?

1047


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

1051


What are the swing components in java?

1087