My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 58 attachment: AppletRender.java (662 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import org.swixml.SwingEngine;


public class AppletRender extends JApplet {

public void init() {

super.init();
try {
String descriptorfile = this.getParameter("xml-descriptor");
if (descriptorfile == null) {
descriptorfile = "xml/form_applet.xml";
}
//new SwingEngine(this).insert(new URL(getCodeBase(), descriptorfile), this);
SwingEngine engine = new SwingEngine(this);

//engine.render(descriptorfile).setVisible(true);
engine.insert(new URL(getCodeBase(), descriptorfile), this);
this.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
}
Powered by Google Project Hosting