Hello again,

I don't mean to be a bother but I've been unable to figure this out. Any 
assistance would be greatly appreciated.

-PJ

From: losersrpatri...@hotmail.com
To: jmol-developers@lists.sourceforge.net
Date: Wed, 18 Mar 2015 23:57:52 -0400
Subject: Re: [Jmol-developers] accessing atom info




I very much appreciate the reply, thank you.

However, I'm still having difficulty. From what I can tell, this is the 
relevant piece of code:

jmolPanel.viewer.setJmolCallbackListener(console);

This sets the AppConsole as the callback listener, and as a result the 
information I'm looking for is printed into the console. I'm not sure how to 
use this information to either:
a) intercept that information and use it in Java variables
b) print it into a JTextArea rather than a console (which I'm not using)

Thanks again, and sorry for not being able to figure it out on my own!

-PJ

Date: Tue, 17 Mar 2015 16:09:50 -0500
From: hans...@stolaf.edu
To: jmol-developers@lists.sourceforge.net
Subject: Re: [Jmol-developers] accessing atom info

Take a look at the  examples/org/jmol/Integration.java
Run that as a Java application. It shows how to use the callbacks you are 
looking for.

On Tue, Mar 17, 2015 at 12:51 AM, D J <losersrpatri...@hotmail.com> wrote:



So this should be a pretty simple task but I've spent a ridiculous amount of 
hours trying to figure this out and I've been unable to. Hopefully I'm posting 
to the right place and I'm doing it the right way -- I'm not familiar with 
mailing lists.

I've got Jmol set up in Eclipse. It's set up to build a .jar so that my little 
app can be run as its own executable file. It basically just takes Jmol and 
puts it in some jPanels and gives basic command buttons.

What I'm trying to get is the basic atom information and PRINT IT in one of my 
JTextAreas. This type of info for example:
C4 #4 0.4639 -0.7285 -0.24129999

The worst part is that when I select an atom and check the Eclipse console, I 
can see a message such as
setStatusAtomPicked(3,C4 #4 0.4639 -0.7285 -0.24129999)
as if to taunt me. But even though I can see this information in the console, 
I'm unable to figure out a way to actually make use of it or access it in the 
code.

I've imported the JmolViewer and use that to display the Jmol window. I've 
imported JmolSelectionListener, JmolStatusListener and EnumCallback as I feel 
like they're somehow the key to what I'm trying to do... but am at a loss at 
how to go about doing what I want.

Any help would be greatly appreciated,

-PJ
                                          

------------------------------------------------------------------------------

Dive into the World of Parallel Programming The Go Parallel Website, sponsored

by Intel and developed in partnership with Slashdot Media, is your hub for all

things parallel software development, from weekly thought leadership blogs to

news, videos, case studies, tutorials and more. Take a look and join the

conversation now. http://goparallel.sourceforge.net/
_______________________________________________

Jmol-developers mailing list

Jmol-developers@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/jmol-developers




-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get. 

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900




------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers                    
                  

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers                    
                  
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to