(Applet applet)
| 65 | } |
| 66 | |
| 67 | public void replace(Applet applet) { |
| 68 | this.wrappedApplet = applet; |
| 69 | |
| 70 | applet.setStub(this); |
| 71 | applet.setSize(getWidth(), getHeight()); |
| 72 | |
| 73 | this.setLayout(new BorderLayout()); |
| 74 | this.add(applet, "Center"); |
| 75 | |
| 76 | applet.init(); |
| 77 | |
| 78 | active = true; |
| 79 | |
| 80 | applet.start(); |
| 81 | |
| 82 | validate(); |
| 83 | } |
| 84 | |
| 85 | public void setParameter(String name, String value) { |
| 86 | params.put(name, value); |