JAL-1807 Bob
[jalviewjs.git] / src / awt2swing / Frame.java
1 package awt2swing;
2
3 import javax.swing.JFrame;
4
5 public class Frame extends JFrame {
6
7         public Frame(String title) {
8                 super(title);
9         }
10
11         public Frame() {
12                 super();
13         }
14
15         public void remove(int i) {
16                 /**
17                  * SwingJ has a somewhat reduced method set; we just use
18                  * this interface to add ones we feel we need.
19                  * 
20                  * @j2sNative
21                  * 
22                  * this.removeInt(i);
23                  * 
24                  */
25                 {
26                         super.remove(i);
27                 }
28         }
29         
30         public void setMenuBar(MenuBar m) {
31                 setJMenuBar(m);
32         }
33
34   public void unsetMenuBar() {
35         setJMenuBar(null);
36         }
37
38
39         public MenuBar getMenubar() {
40                 return (MenuBar) getJMenuBar();
41         }
42
43 }