On Sun, 2006-07-09 at 19:52 +0530, Om wrote: > Hi, > > I have been (unsuccessfully) trying to compile 'simplemcss.java' > available from the http://blue.chem.psu.edu/%7Erajarshi/code/java/. > > I am using recent version of cdk src from svn and complied using 'ant > clean dist-large' and JDK 1.5. > > I have checked in the recent SVN API. The Render2DModel does not have > setHighlightColor() method. What is the equivalent method for this in > the recent version of the cdk form svn.
As far as I can see, replace the above method call with a call to setSelectedPartColor. So it should read r2dm.setSelectedPartColor(Color.blue); Also, the call to paint requires an additional argument of true: renderer.paintMolecule(this.haystack, (Graphics2D)g, false, true) With these changes it will work. I've update the code on the webpage ------------------------------------------------------------------- Rajarshi Guha <[EMAIL PROTECTED]> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Say it with flowers - give her a triffid ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Cdk-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cdk-user

