home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 October / PCO1097.ISO / FilesBBS / WIN95 / IAVAZIP.EXE / DATA.Z / rt.jar / java / awt / Panel.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-05-20  |  1.1 KB  |  23 lines

  1. package java.awt;
  2.  
  3. public class Panel extends Container {
  4.    static final LayoutManager panelLayout = new FlowLayout();
  5.    private static final String base = "panel";
  6.    private static int nameCounter;
  7.    private static final long serialVersionUID = -2728009084054400034L;
  8.  
  9.    public Panel() {
  10.       this(panelLayout);
  11.    }
  12.  
  13.    public Panel(LayoutManager var1) {
  14.       super.name = "panel" + nameCounter++;
  15.       ((Container)this).setLayout(var1);
  16.    }
  17.  
  18.    public void addNotify() {
  19.       super.peer = ((Component)this).getToolkit().createPanel(this);
  20.       super.addNotify();
  21.    }
  22. }
  23.