Writing a GUI Application with a Horizontal Layout