BorderLayout (2)

import java.awt.*;

class TestBorderLayout extends Frame {
   TestBorderLayout()
   {
      add("West", new PushButton("Push Me W"));
      add("East", new PushButton("Push Me E"));
      add("South", new PushButton("Push Me S"));
      add("North", new PushButton("Push Me N"));
      resize(400, 200);
      setVisible(true);
    }
}


Slide 61 ©Copyright 1997 Jan Newmarch