1 |
/* JApplet.java -- |
/* JApplet.java -- |
2 |
Copyright (C) 2002, 2004 Free Software Foundation, Inc. |
Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
59 |
|
|
60 |
public JApplet() |
public JApplet() |
61 |
{ |
{ |
|
frameInit(); |
|
|
} |
|
|
|
|
|
public JApplet(String title) |
|
|
{ |
|
|
frameInit(); |
|
|
} |
|
|
|
|
|
protected void frameInit() |
|
|
{ |
|
62 |
super.setLayout(new BorderLayout(1, 1)); |
super.setLayout(new BorderLayout(1, 1)); |
63 |
getRootPane(); // will do set/create |
getRootPane(); // will do set/create |
64 |
} |
} |
90 |
return rootPane; |
return rootPane; |
91 |
} |
} |
92 |
|
|
93 |
public void setRootPane(JRootPane root) |
protected void setRootPane(JRootPane root) |
94 |
{ |
{ |
95 |
if (rootPane != null) |
if (rootPane != null) |
96 |
remove(rootPane); |
remove(rootPane); |
99 |
add(rootPane, BorderLayout.CENTER); |
add(rootPane, BorderLayout.CENTER); |
100 |
} |
} |
101 |
|
|
102 |
public JRootPane createRootPane() |
protected JRootPane createRootPane() |
103 |
{ |
{ |
104 |
return new JRootPane(); |
return new JRootPane(); |
105 |
} |
} |