This homework is meant to give you practice with selecting appropriate widgets for a problem and with selecting and using Java layout managers.
Box b1 = Box.createVerticalBox(); Box b2 = Box.createHorizontalBox(); b1.add(button1); b1.add(Box.createRigidArea(new Dimension(0,5)); b1.add(button2); b1.add(Box.createRigidArea(new Dimension(0,5)); b1.add(button3); b2.add(b1); b2.add(Box.createHorizontalGlue()); b2.add(button4); getContentPane().add(b2);
java travelocityPlay with the application by resizing the window to see how the layout changes.
Your assignment for this problem is to complete the file named travelocity.java so that it mimics my layout. travelocity.java already declares and allocates all the widgets that you need. You simply need to add panels, boxes, and layout managers. You can find travelocity.java in /home/bvz/gui/hw/hw4.
Hints: