How can i add a button in applet in java ???
Answers were Sorted based on User's Feedback
Answer / 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 |
Button b1=new Button("OK");
add(b1);
Is This Answer Correct ? | 0 Yes | 0 No |
why should we get the following error ? Exception in main method NoClassDefFoundError:classname could anyone give the detail clarification on how java compiler can look for .class file?
Can we write class inside a class in java?
Explain serialization and deserialization in java?
Explain about static imports in java?
Why does java doesnt suuport unsigned values?
Is finalize() similar to a destructor?
Is a string literal?
What is meant by stack and queue?
What is the difference between stringbuffer and stringbuilder class?
Is an array a vector?
What is java english?
In which language JVM (Java Virtual Machine) is implemented