Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the preferred size of a component?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the flag in java?

1031


Define packages in java?

981


Define an enumeration?

1023


Can a constructor call another constructor?

963


What interface is extended by awt event listeners?

1042


What’s the difference between the methods sleep() and wait()?

998


What is variable explain with example?

1036


What is ph and buffers?

986


How to restrict a member of a class from inheriting by its sub classes?

1328


What does it mean that a class or member is final?

980


What are the legal operands of the instanceof operator?

1006


What is void data type?

969


Can we synchronize static methods in java?

1078


How do you add an arraylist to an array in java?

963


How do you delete a list in java?

935