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
Does java have extension methods?
What does .equals do in java?
What will be the default values of all the elements of an array defined as an instance variable?
How to calculate the length of a singly linked list in java?
How do you convert string to int in java?
How do you find the absolute value?
Explain illegalmonitorstateexception and when it will be thrown?
What is use of valueof () in java?
Can you inherit from an abstract class java?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
What are the string methods in java?
What is garbage collection? Can it be forced to run?
How is string immutable in java?
What is a byte string?
What is the applet security manager, and what does it provide?