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

Reply via email to