You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
416 B
17 lines
416 B
#!/usr/bin/env kjscmd
|
|
|
|
var mw = new KMainWindow();
|
|
var box = new TQVBox( mw );
|
|
mw.setCentralWidget( box );
|
|
|
|
var args = [ "WIDTH=300", "HEIGHT=250", "CODE=TestApplet.class", "CLASSPATH=.", "TEXT=Foobar" ]
|
|
var part = Factory.createROPart( "application/x-java-applet",
|
|
"'KParts/ReadOnlyPart' in ServiceTypes",
|
|
box, "foobar",
|
|
args );
|
|
|
|
part.openURL( "./TestApplet.class" );
|
|
|
|
mw.show();
|
|
application.exec();
|