Added support for Size, preferredSize and borderLayout, removed height
and width attributes