Hi, all

 WIth the code of other project integrating Jmol, I implemented an
PDB2PNG renderer by using JmolViewer and BufferedImage.
But the renderer is not perfect yet. JmolViewer provides openFIle()
and openStringInline() to load files, but both of them is executed in
another thread other than the main thread. As this renderer is written
for a web-based database to display protein image. So this
multi-thread design becomes a problem for me. I have to block the main
thread until the file is loaded instead of rendering the image right
after I execute openFile(). I don't know when the file is loaded, so I
used Thread.sleep(1000);. If I can get informed when the file is
loaded, then I can avoid this stupid solution. Is there any listener
for file load finish or any method that can load file in a blocked
way.


Best Regards,

Duan Lian

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to