|
Hello,
I am glad that JChemPaint is part of CDK now.
But when I try to use JChemPaintEditorPanel and JChemPaintViewerOnlyPanel, they didn't function as I expected.
For example, I put JChemPaintEditorPanel in a JFrame, JChemPaintEditorPanel doesn't draw molecule at all. Here is my code:
import javax.swing.*; import org.openscience.cdk.applications.jchempaint.*; import org.openscience.cdk.applications.jchempaint.application.JChemPaint; import org.openscience.cdk.applications.jchempaint.action.*; public class MolSketch { public static void main(String[] ags) { MolSketch ms = new MolSketch(); } public MolSketch() { JFrame frame = new JFrame(); frame.getContentPane().add(new JChemPaintEditorPanel()); frame.pack(); frame.setVisible(true); } }
Did I do something wrong?
I just need a molecular editor and viewer integrating with my application. I hope JChemPaintEditorPanel and JChemPaintViewerOnlyPanel could help me.
Thanks.
Hongmei
|
- [Cdk-user] JChemPaintEditorPanel Sun, Hongmei*
- Re: [Cdk-user] JChemPaintEditorPanel Egon Willighagen

