File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html > < title > SwingJS test _NAME_</ title >
3+ < head > < meta charset ="utf-8 " />
4+ < script src ="swingjs/swingjs2.js "> </ script >
5+ < script >
6+ if ( ! self . Clazz ) alert ( 'swingjs2.js was not found' )
7+ Info = {
8+ code : _CODE_ ,
9+ main : _MAIN_ ,
10+ width : 850 ,
11+ height : 550 ,
12+ serverURL : 'http://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php' ,
13+ j2sPath : '.' ,
14+ console :'sysoutdiv' ,
15+ allowjavascript : true
16+ }
17+ </ script >
18+ </ head >
19+ < body >
20+ < script >
21+ SwingJS . getApplet ( 'testApplet' , Info )
22+ </ script >
23+ < div style ="position:absolute;left:900px;top:30px;width:600px;height:300px; ">
24+ < div id =sysoutdiv style ="border:1px solid green;width:100%;height:95%;overflow:auto "> </ div >
25+ This is System.out. < a href ="javascript:testApplet._clearConsole() "> clear it</ a >
26+ </ div >
27+ </ body >
28+ </ html >
Original file line number Diff line number Diff line change 11/bin /
2+ /site /
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html > < title > SwingJS test _NAME_</ title >
3+ < head > < meta charset ="utf-8 " />
4+ < script src ="swingjs/swingjs2.js "> </ script >
5+ < script >
6+ if ( ! self . SwingJS ) alert ( 'swingjs2.js was not found. It needs to be in swingjs folder in the same directory as ' + document . location . href )
7+ Info = {
8+ code : _CODE_ ,
9+ main : _MAIN_ ,
10+ width : 850 ,
11+ height : 550 ,
12+ serverURL : 'http://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php' ,
13+ j2sPath : 'swingjs/j2s' ,
14+ console :'sysoutdiv' ,
15+ allowjavascript : true
16+ }
17+ </ script >
18+ </ head >
19+ < body >
20+ < script >
21+ SwingJS . getApplet ( 'testApplet' , Info )
22+ </ script >
23+ < div style ="position:absolute;left:900px;top:30px;width:600px;height:300px; ">
24+ < div id =sysoutdiv style ="border:1px solid green;width:100%;height:95%;overflow:auto "> </ div >
25+ This is System.out. < a href ="javascript:testApplet._clearConsole() "> clear it</ a >
26+ </ div >
27+ </ body >
28+ </ html >
You can’t perform that action at this time.
0 commit comments