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

Is a case study a method or methodology?

456


What is %02d?

572


How many bits is a word?

554


What is static data type in java?

533


Can I uninstall java?

543






What is equlas() and hashcode() contract in java? Where does it used?

600


What are voids?

528


Does java arraylist maintain insertion order?

542


What is use of set in java?

486


What is class variable java?

578


Can we override singleton class?

528


Explain the difference between jvm and jre?

552


Explain the selection sort algorithm?

634


How do you declare a string variable?

508


Can arraylist hold different types java?

478