On Monday 10 April 2006 16:59, Sun, Hongmei* wrote:
> Did I do something wrong?

I would expect that your code should work, but it indeed does not.

Use this code instead:

JChemPaintModel model = new JChemPaintModel();
JFrame frame = JChemPaintEditorPanel.getNewFrame(model);
frame.pack();
frame.setVisible(true);

Egon

-- 
[EMAIL PROTECTED]
PhD student on Molecular Representation in Chemometrics
Radboud University Nijmegen
Blog: http://chem-bla-ics.blogspot.com/
http://www.cac.science.ru.nl/people/egonw/
GPG: 1024D/D6336BA6


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to