Separates Swing and common parts in Layout