OK, so the final word from me on this today is that the -n option really 
works, but it isn't thought out terribly well. All I did was get around 
one error trap after another without really grocking how all this works. 
Principally, Nico, what I had to do was bypass the DisplayPanel call to 
Viewer.setScreenDimension(), because it was sending it some odd useless 
dimension -- 10 x 640, I think. And then after the eval.run() call comes 
back, I have it do the visibility stuff that is in 
Viewer.renderScreenImage().  Anyway, probably the whole display panel 
business is unnecessary, I just don't have a good sense of the heirarchy 
of the panels and frames and windows and such. Probably what I did was a 
bunch of little things that could have been gotten around by a more 
insightful pinpointing of the problem.

So, I leave this in the hands of the experts to clean up. There are 
almost certainly problems that will show up unless someone does this right.

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
>>[email protected]
>>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
>[email protected]
>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-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to