On Tue, 2004-05-25 at 17:06, Miguel wrote:

> First, try this ...
> 
> You want to send the events to the java.awt.Component that is holding the
> instances of the JmolViewer.
> 
> MouseManager11.java registers itself with the Component so that it will
> pick up the events.


OK, so I assume that if jmp is an instance of JmolPanel then something
like

jmp.dispatchEvent(e)

shoudl send whatever event I get to the viewer.

> I have not done that much Swing programming

I've done even less :) 

>  but it seems to me that if
> you can just send your MouseEvents to the Component, then it will dispatch
> the events correctly.

OK, so basically what I have so far is a JTable which uses a custom cell
renderer for the structure's column. From what I understand I need to
provide a custom cell editor - as basically clicking/dragging on a cell
can be considered an 'edit' operation.

However, since I want the 'editor' to simply be a forwarder for events
(forwarding to the cell component which is a JmolPanel) I need to
implmenet some form of a listener/action interface - maybe ActionEvent?


This is where I'm getting stuck - I dont know enough of what is
available to choose what interface needs to be implemented.

I've placed the source file at http://jijo.cjb.net/molview.java
if anybody would be able to help out with this problem. Currently it
wont compile since I dont know how to fill in the JmolPanelCellEditor
class (which implenments TableCellEditor)

Thanks,


-------------------------------------------------------------------
Rajarshi Guha <[EMAIL PROTECTED]> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
How I wish I were what I was when I wished I were what I am.



-------------------------------------------------------
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