8020060: MoleculeViewerTest demo doesn't work due to SecurityPermissions
Reviewed-by: malenkov, erikj
This commit is contained in:
parent
51205b7e55
commit
dfacc4e272
@ -65,14 +65,10 @@ $(eval $(call SetupAppletDemo,DitherTest))
|
||||
$(eval $(call SetupAppletDemo,DrawTest))
|
||||
$(eval $(call SetupAppletDemo,Fractal))
|
||||
$(eval $(call SetupAppletDemo,GraphicsTest))
|
||||
$(eval $(call SetupAppletDemo,MoleculeViewer))
|
||||
$(eval $(call SetupAppletDemo,NervousText))
|
||||
$(eval $(call SetupAppletDemo,SimpleGraph))
|
||||
$(eval $(call SetupAppletDemo,SortDemo))
|
||||
$(eval $(call SetupAppletDemo,SpreadSheet))
|
||||
# Build WireFrame without a server since it
|
||||
# has a class Matrix3D that also exists in MoleculeViewer.
|
||||
$(eval $(call SetupAppletDemo,WireFrame,true))
|
||||
|
||||
ifndef OPENJDK
|
||||
$(eval $(call SetupAppletDemo,Animator,,closed/))
|
||||
@ -83,7 +79,7 @@ endif
|
||||
|
||||
##################################################################################################
|
||||
|
||||
PATTERNS_TO_COPY=.html .txt .properties .js .gif .jpg .theme .data .opt README .c .h .png .ttf
|
||||
PATTERNS_TO_COPY=.html .txt .properties .js .gif .jpg .theme .data .opt README .c .h .png .ttf .xyz .obj
|
||||
|
||||
define SetupDemo
|
||||
# Param 1 = Name of the demo
|
||||
@ -161,6 +157,8 @@ $(JDK_OUTPUTDIR)/demo/jfc/CodePointIM/_the.services : \
|
||||
|
||||
BUILD_DEMOS+=$(JDK_OUTPUTDIR)/demo/jfc/CodePointIM/_the.services
|
||||
|
||||
$(eval $(call SetupDemo,MoleculeViewer,applets,,XYZChemModel,,,example*.html XYZApp.java))
|
||||
$(eval $(call SetupDemo,WireFrame,applets,,ThreeD,,,example*.html ThreeD.java))
|
||||
$(eval $(call SetupDemo,FileChooserDemo,jfc,,FileChooserDemo,,,README*))
|
||||
$(eval $(call SetupDemo,Font2DTest,jfc,,Font2DTest,,,*.html *.txt))
|
||||
$(eval $(call SetupDemo,Metalworks,jfc,,Metalworks,,,README*))
|
||||
|
@ -348,7 +348,7 @@ public class XYZApp extends Applet implements Runnable, MouseListener,
|
||||
InputStream is = null;
|
||||
try {
|
||||
Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
|
||||
is = new URL(getDocumentBase(), mdname).openStream();
|
||||
is = getClass().getResourceAsStream(mdname);
|
||||
XYZChemModel m = new XYZChemModel(is);
|
||||
Atom.setApplet(this);
|
||||
md = m;
|
||||
|
@ -2,10 +2,10 @@
|
||||
<head>
|
||||
<title>MoleculeViewer (example 1)</title>
|
||||
</head>
|
||||
<body>
|
||||
<body>
|
||||
<h1>MoleculeViewer (example 1)</h1>
|
||||
<hr>
|
||||
<applet code=XYZApp.class width=300 height=300>
|
||||
<applet code=XYZApp.class archive=MoleculeViewer.jar width=300 height=300>
|
||||
<param name=model value="models/HyaluronicAcid.xyz">
|
||||
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
|
||||
Your browser is completely ignoring the <APPLET> tag!
|
||||
@ -13,7 +13,7 @@
|
||||
<hr>
|
||||
<a href="XYZApp.java">The source</a>.
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
@ -2,10 +2,10 @@
|
||||
<head>
|
||||
<title>MoleculeViewer (example 2)</title>
|
||||
</head>
|
||||
<body>
|
||||
<body>
|
||||
<h1>MoleculeViewer (example 2)</h1>
|
||||
<hr>
|
||||
<applet code=XYZApp.class width=300 height=300>
|
||||
<applet code=XYZApp.class archive=MoleculeViewer.jar width=300 height=300>
|
||||
<param name=model value="models/buckminsterfullerine.xyz">
|
||||
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
|
||||
Your browser is completely ignoring the <APPLET> tag!
|
||||
@ -13,4 +13,4 @@
|
||||
<hr>
|
||||
<a href="XYZApp.java">The source</a>.
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -5,25 +5,25 @@
|
||||
<body>
|
||||
<h1>MoleculeViewer (example 3)</h1>
|
||||
<hr>
|
||||
<applet code=XYZApp.class width=100 height=100>
|
||||
<applet code=XYZApp.class archive=MoleculeViewer.jar width=100 height=100>
|
||||
<param name=model value="models/water.xyz">
|
||||
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
|
||||
Your browser is completely ignoring the <APPLET> tag!
|
||||
</applet>
|
||||
<p>
|
||||
<applet code=XYZApp.class width=100 height=100>
|
||||
<applet code=XYZApp.class archive=MoleculeViewer.jar width=100 height=100>
|
||||
<param name=model value="models/benzene.xyz">
|
||||
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
|
||||
Your browser is completely ignoring the <APPLET> tag!
|
||||
</applet>
|
||||
<p>
|
||||
<applet code=XYZApp.class width=100 height=100>
|
||||
<applet code=XYZApp.class archive=MoleculeViewer.jar width=100 height=100>
|
||||
<param name=model value="models/ethane.xyz">
|
||||
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
|
||||
Your browser is completely ignoring the <APPLET> tag!
|
||||
</applet>
|
||||
<p>
|
||||
<applet code=XYZApp.class width=100 height=100>
|
||||
<applet code=XYZApp.class archive=MoleculeViewer.jar width=100 height=100>
|
||||
<param name=model value="models/cyclohexane.xyz">
|
||||
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
|
||||
Your browser is completely ignoring the <APPLET> tag!
|
||||
@ -31,5 +31,5 @@
|
||||
<hr>
|
||||
<a href="XYZApp.java">The source</a>.
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
|
@ -416,7 +416,7 @@ public class ThreeD extends Applet
|
||||
InputStream is = null;
|
||||
try {
|
||||
Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
|
||||
is = new URL(getDocumentBase(), mdname).openStream();
|
||||
is = getClass().getResourceAsStream(mdname);
|
||||
Model3D m = new Model3D(is);
|
||||
md = m;
|
||||
m.findBB();
|
||||
|
@ -5,7 +5,7 @@
|
||||
<body>
|
||||
<h1>3D Model: Cube</h1>
|
||||
<hr>
|
||||
<applet code=ThreeD.class width=100 height=100>
|
||||
<applet code=ThreeD.class archive=WireFrame.jar width=100 height=100>
|
||||
<param name=model value="models/cube.obj">
|
||||
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
|
||||
Your browser is completely ignoring the <APPLET> tag!
|
||||
|
@ -5,7 +5,7 @@
|
||||
<body>
|
||||
<h1>3D Model: Dinosaur</h1>
|
||||
<hr>
|
||||
<applet code=ThreeD.class width=300 height=300>
|
||||
<applet code=ThreeD.class archive=WireFrame.jar width=300 height=300>
|
||||
<param name=model value="models/dinasaur.obj">
|
||||
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
|
||||
Your browser is completely ignoring the <APPLET> tag!
|
||||
|
@ -5,7 +5,7 @@
|
||||
<body>
|
||||
<h1>3D Model: Hughes</h1>
|
||||
<hr>
|
||||
<applet code=ThreeD.class width=300 height=300>
|
||||
<applet code=ThreeD.class archive=WireFrame.jar width=300 height=300>
|
||||
<param name=model value="models/hughes_500.obj">
|
||||
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
|
||||
Your browser is completely ignoring the <APPLET> tag!
|
||||
|
@ -5,7 +5,7 @@
|
||||
<body>
|
||||
<h1>3D Model: knoxS</h1>
|
||||
<hr>
|
||||
<applet code=ThreeD.class width=300 height=300>
|
||||
<applet code=ThreeD.class archive=WireFrame.jar width=300 height=300>
|
||||
<param name=model value="models/knoxS.obj">
|
||||
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
|
||||
Your browser is completely ignoring the <APPLET> tag!
|
||||
|
Loading…
Reference in New Issue
Block a user