What is the preferred size of a component?

Answers were Sorted based on User's Feedback



What is the preferred size of a component?..

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

What is the preferred size of a component?..

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

What is the preferred size of a component?..

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

Post New Answer

More Core Java Interview Questions

Explain break statement and continue statement?

3 Answers  


Is java 9 released?

0 Answers  


Can we declare an anonymous class as both extending a class and implementing an interface?

8 Answers   College School Exams Tests, JVA, TCS, Wipro,


hr interview how many minutes asking question

0 Answers  


Which class cannot be a subclass in java?

0 Answers  






What is difference between array and arraylist in java?

0 Answers  


what is the difference between multitasking and multithreading?

21 Answers   TCS,


What is the multilevel inheritance. and also give the Example of it ?

5 Answers  


What is difference between final and finally in java?

0 Answers   Cyient,


Question 6 [9] 6.1 In what situations (in general) would you use a TreeMap? (3) 6.2 In what situations (in general) would you use a HashSet to store a collection of values?

1 Answers  


What is the default modifier in Interface?

5 Answers  


Is array dynamic in java?

0 Answers  


Categories