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...

How can i add a button in applet in java ???

Answer Posted / s.krishna veni

buttons should be declared..
coding to add a button :
Button b1;
b1=new Button("ok");
add(b1);

and after declaring the button..,we should add it to the
applet window..
so that a button is added at run time..

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we break singleton in java?

902


How to make a class or a bean serializable?

911


How do you define a set in java?

944


How we can make copy of a java object?

1043


Which software is used for java programming?

960


What is main method?

995


Can you declare an interface method static?

1008


What is meant by tab pans?

1132


What’s the difference between callable and runnable?

1022


List the different types of classloaders in java.

923


What is the SimpleTimeZone class?

2208


What is hashing in java?

974


Why java is not 100% object-oriented?

1432


What is 16 bits called?

888


What is an infinite loop in java? Explain with an example.

975