To set the position and size of a component, which methods
are used?
Answers were Sorted based on User's Feedback
Answer / ranjith
setBounds
Set the size and location relative to the parent's upper
left corner, in pixels, of the component. The four int
arguments specify x, y, width, and height, in that order.
Use these methods to position and size a component when you
are not using a layout manager.
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / pkr_reddy
to set the position is used setLayout accepting the argument
as layout object.
ex:setLayout(layout lobject);
in order to set the component sze there is no method that is
default set the size by layout manazer .
| Is This Answer Correct ? | 5 Yes | 4 No |
Explain the significance of listiterator.
What is a void method?
Class A extends Class B but Class A also inherit Super Class Object so it is multiple inheritence give reason in support of your answer
What is data abstraction? Elaborate with example?
What is the difference between the program and the process?
Hi ,i convert contrller as jSp And presentation as servlet ...will it do? if so what are advantage and idsadvantages
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
What is <> used for in java?
What is a module function?
What are exception handling keywords in java?
What is a finally block? Is there a case when finally will not execute?
How do you trim a space in java?