1 /* Copyright (C) 1999, 2000 Free Software Foundation
3 This file is part of libjava.
5 This software is copyrighted work licensed under the terms of the
6 Libjava License. Please consult the file "LIBJAVA_LICENSE" for
10 import java
.awt
.peer
.FramePeer
;
12 /* A very incomplete placeholder. */
14 public class Frame
extends Window
implements MenuContainer
16 MenuBar menuBar
= null;
22 public Frame (String title
)
28 public String
getTitle () { return title
; }
30 public void setTitle (String title
)
34 ((FramePeer
)peer
).setTitle(title
);
37 public synchronized void dispose ()
40 public synchronized void setMenuBar (MenuBar menuBar
)
41 { this.menuBar
= menuBar
; }
43 public synchronized void addNotify ()
47 FramePeer fpeer
= Toolkit
.getDefaultToolkit().createFrame(this);
48 // Compiler bug requires cast ??; FIXME?
49 peer
= (java
.awt
.peer
.ComponentPeer
) fpeer
;
50 if (width
+ height
> 0)
51 peer
.setBounds(x
, y
, width
, height
);
56 public Font
getFont() { return null; } // FIXME
57 public boolean postEvent(Event evt
) { return false; } // FIXME
58 public void remove(MenuComponent comp
) { } // FIXME