What is the preferred size of a component?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sorting in java?

536


What is parse method?

543


What is the difference between abstraction and encapsulation?

562


Is namespace same as package in java?

545


Which is the class in java?

521






What are the two types of java?

519


How many bits is a boolean?

622


Explain the importance of throwable class and its methods?

569


What two classes are used to read data only?

640


java program with complete 4 oops concepts implemented example

2730


How do you add an element to a hashset in java?

492


What is a default constraint?

616


How would you dynamically allocate memory to an array?

596


Does a function need a return?

533


Give reasons supporting that string is immutable.

498