What is the preferred size of a component?
Answers were Sorted based on User's Feedback
Answer / iram zaib
preferred size of a component is the minimum size at which
it display normally
| Is This Answer Correct ? | 57 Yes | 9 No |
Answer / ranganathkini
When frames or containers are designed using layout
managers, each layout manager imposes certain rules on how
the components within the container must be placed and
sized. Components cannot impose their required size on the
layout manager hence they use the "preferred size" attribute
to suggest to the layout manager of what wud be the ideal
size/location to display them.
The layout manager looks at the preferred size requested by
the components while laying them out in the container. If
the preferred size can be given to the component without
violating the layout manager's rules then the layout manager
uses the preferred size for that component.
| Is This Answer Correct ? | 37 Yes | 14 No |
Answer / dhanashree
The minimum size of the component, enough to display its label is known as preferred size of the component. For example, the button size should display its label with platform-specific decoration like dotted lines around the label etc. The FlowLayout manager gives the preferred size to a component.
| Is This Answer Correct ? | 10 Yes | 1 No |
I need help please send me reply: Write a program "if given a string like 'HAT', the combination's returned should be like ATH,THA,TAH in java"?
What are the difference between string, string builder, and string buffer in java?
Explain enumeration in java?
what is the difference between System.exit() and System.exit(1)?
1 Answers eClinical Solutions, eClinical Works, eClinicalWorks,
How many characters is 16 bytes?
placement papaers of spring computing technology
0 Answers Spring Computing Technologies,
How are this and super used?
Does java support multiple inheritances?
What is boolean in java?
What is the difference between a Window and a Frame?
What is java in layman terms?
Can extern variables be initialized?