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 |
What is an immutable class?
Why java is considered as platform independent?
If we don’t want some of the fields not to serialize how to do that?
what is real-time example of runtime polymorphism and compile time polymorphism
How does predicate work in java?
Does .length start 0 java?
explain System.out.println
107 Answers Calpine Technologies, Care, Cognizant, CTS, IBM, IBS, LibSys, Oracle, Spiro Solutions, TCS,
Can i have abstract class with no abstract methods?
Are registers volatile?
What does the @override annotation do?
Suppose there is a System A which gives some output. This output is used as input by system B. The rate at which System A produces is faster than the rate at which system B consumes it. How can you improve this?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?