It's a hack, but these plus a few more do the trick. I had it clip that 
measurements picture with no display. Oh, this is great.

Bob

Nicolas Vervelle wrote:

>Bob,
>
>I think a few modifications can prevent the Jmol window to open. Can you 
>try and test them ?
>I tested them with a simple command line (getting measures), and it worked.
>
>Here's what I think is needed:
>
>org.openscience.jmol.app.Jmol:
>getJmol(): we should call frame.show() only if haveDisplay is true
>Jmol(): maybe (not sure), we should create the atomSetChooser only if 
>haveDisplay is true
>
>org.jmol.viewer.Viewer:
>requestRepaintAndWait(): we should call repaintManager only if 
>haveDisplay is true.
>
>Nico
>
>
>Note: even if the Jmol window is not displayed, it may not work on a 
>Unix machine without an X server.
>I know that some Java methods require that an X server is there, even if 
>nothing needs to be displayed (a JVM bug IMHO)
>That would be something to test.
>If it doesn't work, it may probably work using a virtual server (see Xvfb)
>
>
>[EMAIL PROTECTED] wrote:
>  
>
>>>>A little Jmol window opened and closed itself after a while. The output
>>>>file afterwards contained the measurement list.
>>>>
>>>> 
>>>>
>>>>      
>>>>        
>>>>
>>>that is the correct behavior. I don't know how to hide that window, and 
>>>I'm not sure I want to. Is that OK?
>>>
>>>If someone can figure out how to make this totally no display, I'm all 
>>>for it. That's past my ability.
>>>    
>>>      
>>>
>>I will take a look at it if I find some time this evening (still at the 
>>office :( )
>>
>>Nico
>>
>>
>>-------------------------------------------------------------------------
>>Take Surveys. Earn Cash. Influence the Future of IT
>>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>opinions on IT & business topics through brief surveys -- and earn cash
>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>_______________________________________________
>>Jmol-users mailing list
>>Jmol-users@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/jmol-users
>> 
>>
>>
>>  
>>    
>>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys -- and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>Jmol-users mailing list
>Jmol-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to