Hi Bob,

The Java version in MATLAB (application) is JRE 1.6.  Since Jmol code
did not change it must be some changes in MATLAB side. I need to look at
into it more.  But I will try your suggestion first.

As always thank you very much for your timely answers.

Li Yang

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, January 24, 2008 6:59 AM
To: [email protected]
Subject: Re: [Jmol-users] debug print out for popup?

> Hi Bob,
>
> Thank you so much for the help.  Adding
>
> viewer.setStringProperty("defaults", "Jmol");
>
> did removed the message.
>
>
> I have another question about loading a file using the script.  It
used
> to be
>  load 1ubi.pbd
> will load the pdb file from current directory.  But now Jmol seemed to
> add the path of the directory where the application starts to the file
> name and it can not find the file even it is in current directory. Is
> this intended behavior?

Li Yang,

As far as I know nothing has changed. If you use "1ubi.pdb" Jmol has
always added the full path to that using simply

    File file = new File(name);
    fullPath = file.getAbsolutePath();

So perhaps it has something to do with Java versions and how
File.getAbsolutePath() is interpreted.

Note that you can designate a default directory, which could be your
application directory if you wish, using

viewer.setStringProperty("defaultDirectory",
"file://some/directory/path");

That seems to me a good solution in this case.

Bob

>
> Thanks,
>
> Li Yang
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> [EMAIL PROTECTED]
> Sent: Tuesday, January 22, 2008 7:37 AM
> To: [email protected]
> Subject: Re: [Jmol-users] debug print out for popup?
>
> This is a bug. I've reported it and will fix it later next week when I
> return to the US. You can avoid the message by having your application
> send
>
>   viewer.setStringProperty("defaults", "Jmol");
>
> or
>
>   viewer.setBooleanProperty("perspectiveDepth", true);
>
> (or FALSE, if you prefer) prior to whatever command you have that is
> invoking
>
>   viewer.getBooleanProperty("perspectiveDepth")
>
> Bob
>
>> Hi Bob,
>>
>>
>>
>> I am embedding Jmol 11.4.RC in my applications.  Whenever I
> right-click
>> to bring up the context menu,  I got this line print to my log
window.
>> It looks like a debug statement.
>>
>>
>>
>> viewer.getBooleanProperty(perspectivedepth) - unrecognized
>>
>> Thanks,
>>
>>
>>
>> Li Yang
>>
>>
>
------------------------------------------------------------------------
> -
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>
>
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_________________
> ______________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>
>
>
>
------------------------------------------------------------------------
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
------------------------------------------------------------------------
-
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to