From: <sh...@us...> - 2008-11-20 17:49:26
|
Revision: 13159 http://cdk.svn.sourceforge.net/cdk/?rev=13159&view=rev Author: shk3 Date: 2008-11-20 17:49:20 +0000 (Thu, 20 Nov 2008) Log Message: ----------- more for the application Modified Paths: -------------- jchempaint/trunk/src/main/org/openscience/jchempaint/applet/JChemPaintApplet.java jchempaint/trunk/src/main/org/openscience/jchempaint/application/JChemPaint.java Added Paths: ----------- jchempaint/trunk/src/main/org/openscience/jchempaint/JChemPaintPanel.java Added: jchempaint/trunk/src/main/org/openscience/jchempaint/JChemPaintPanel.java =================================================================== --- jchempaint/trunk/src/main/org/openscience/jchempaint/JChemPaintPanel.java (rev 0) +++ jchempaint/trunk/src/main/org/openscience/jchempaint/JChemPaintPanel.java 2008-11-20 17:49:20 UTC (rev 13159) @@ -0,0 +1,13 @@ +package org.openscience.jchempaint; + +import javax.swing.JPanel; + +import org.openscience.cdk.interfaces.IAtomContainer; + +public class JChemPaintPanel extends JPanel { + + public JChemPaintPanel(IAtomContainer ac){ + RenderPanel p = new RenderPanel(ac); + this.add(p); + } +} Modified: jchempaint/trunk/src/main/org/openscience/jchempaint/applet/JChemPaintApplet.java =================================================================== --- jchempaint/trunk/src/main/org/openscience/jchempaint/applet/JChemPaintApplet.java 2008-11-20 17:44:17 UTC (rev 13158) +++ jchempaint/trunk/src/main/org/openscience/jchempaint/applet/JChemPaintApplet.java 2008-11-20 17:49:20 UTC (rev 13159) @@ -7,6 +7,7 @@ import org.openscience.cdk.interfaces.IMolecule; import org.openscience.cdk.layout.StructureDiagramGenerator; import org.openscience.cdk.smiles.SmilesParser; +import org.openscience.jchempaint.JChemPaintPanel; import org.openscience.jchempaint.RenderPanel; public class JChemPaintApplet extends JApplet{ @@ -31,7 +32,7 @@ if (ac == null) { System.exit(0); } - RenderPanel p = new RenderPanel(ac); + JChemPaintPanel p = new JChemPaintPanel(ac); this.add(p); } Modified: jchempaint/trunk/src/main/org/openscience/jchempaint/application/JChemPaint.java =================================================================== --- jchempaint/trunk/src/main/org/openscience/jchempaint/application/JChemPaint.java 2008-11-20 17:44:17 UTC (rev 13158) +++ jchempaint/trunk/src/main/org/openscience/jchempaint/application/JChemPaint.java 2008-11-20 17:49:20 UTC (rev 13159) @@ -7,6 +7,7 @@ import org.openscience.cdk.interfaces.IMolecule; import org.openscience.cdk.layout.StructureDiagramGenerator; import org.openscience.cdk.smiles.SmilesParser; +import org.openscience.jchempaint.JChemPaintPanel; import org.openscience.jchempaint.RenderPanel; public class JChemPaint { @@ -35,7 +36,7 @@ if (ac == null) { System.exit(0); } - RenderPanel p = new RenderPanel(ac); + JChemPaintPanel p = new JChemPaintPanel(ac); f.add(p); f.pack(); f.setVisible(true); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |