summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_tdeparts_args.js
blob: 0b9478dbe175ea8ed44969a604a911d4e1b6dc06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env kjscmd

var mw = new TDEMainWindow();
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();