Hi,
  I've written some code to make a JTable with one of the columns of
JmolPanel type (based of the code in Integeration.java). Currently the
code is able to display a set of molecules in the rows of the JTable.

However I cant use the mouse to rotate them. I realize that the JTable
does not automatically forward events to the individual components.

Thus I was trying to see which addXXXListener() function would be
applicable to the JTable so that in the listener function I could check
that the cell was a JmolPanel type and dispatch the event to
handleEvent() in the JmolViewer.

The problem I'm facing is that the handleEvent() function in JmolViewer
takes and Event object while a listener function such as MouseListener
supplies me with a MouseEvent - which I cant seem to coerce to the Event
type.

My main question - is this the correct way to handle events in this
situation (ie catch events and dispatch them handleEvent())?

I would appreciate any pointers as to where I might be wrong

Thanks,

-------------------------------------------------------------------
Rajarshi Guha <[EMAIL PROTECTED]> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
So the Zen master asked the hot-dog vendor, 
"Can you make me one with everything?"
- TauZero on Slashdot



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to