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
Is array an object in java?
What are the two main uses of volatile in Java?
Mention some features of java?
What are the types of exceptions?
What is function and its uses?
How does varargs work in java?
How use .contains in java?
Name few java.lang classes introduced with java 8 ?
What is starvation?
Is map sorted in java?
What are the approaches that you will follow for making a program very efficient?
What is the size of int?
Why is the singleton pattern considered to be an anti pattern?
What is the differences between c++ and java? Explain
Can a class have more than one object?