How to set preferred size in layout

I wants set the components in preferred size. How it possible.