4 <title>SwingJS test JalviewJS2</title><meta charset="utf-8" />
5 <script src="swingjs/swingjs2.js"></script>
7 if (!self.SwingJS)alert('swingjs2.js was not found. It needs to be in swingjs folder in the same directory as ' + document.location.href)
10 main: "jalview.bin.JalviewJS2",
13 serverURL: 'https://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php',
14 j2sPath: 'swingjs/j2s',
16 allowjavascript: true,
19 // note that desktop-frame-div has been set to display:none
20 jalview_SCREEN_WIDTH: 100, // desktop width -- 0 to hide
21 jalview_SCREEN_HEIGHT: 70, // desktop height -- 0 to hide
24 jalview_EMBEDDED: true
31 <!-- note that the desktop must have a z-index ge 1000 because it is the root of all popups -->
32 <div id="jalview-desktop-div" style="z-index:1000;position:relative;top:0px;left:0px;width:300px;height:70px">desktop here</div>
34 <div id="jalview-alignment-div" style="position:relative;top:0px;left:0px;width:600px;height:400px">
35 The alignment frame will appear here momentarily...
39 <div id="jalview-structureviewer-div" style="position:relative;top:0px;left:0px;width:400px;height:400px">
40 jalview-structureviewer-div
44 <div id="jalview-tree-div" style="position:relative;top:0px;left:0px;width:400px;height:400px">
49 <div id="jalview-pca-div" style="position:relative;top:0px;left:0px;width:400px;height:400px">
58 SwingJS.getApplet('testApplet', Info)
59 getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.ClassFilesLoaded.sort().join('\n'))}
63 <div style="position:absolute;left:900px;top:30px;width:600px;height:300px;">
64 <div id="sysoutdiv" style="border:1px solid green;width:100%;height:95%;overflow:auto"></div>
65 This is System.out. <a href="javascript:testApplet._clearConsole()">clear it</a> <br>Add ?j2snocore to URL to see full class list; ?j2sdebug to use uncompressed j2s/core files <br><a href="javascript:getClassList()">get _j2sClassList.txt</a>