Hello everyone,

i am still trying to get the popup menu working with my java application.
I load Jmol into a panel like below and then paste it onto a frame to show 
it. Can it be that the events that the frame gets such as a right mouseclick
dont get passed on to Jmol, so that the popup menu cannot open?

Molecules are zoomable and rotatable. That would speak against this theory. 
Does the panel being enclosed in a frame prevent the popup from working?
Anyone got advice for me how i can get this to work?

thank you in advance
cheers,
Freddy

static class JmolPanel extends JPanel implements ActionListener{
        JmolViewer viewer;
        
        JmolAdapter adapter;
        JmolPanel() {
            adapter = new SmarterJmolAdapter(null);
            viewer = JmolViewer.allocateViewer(this, adapter);
            
        }
        
        public JmolViewer getViewer() {
            return viewer;
        }
        
        final Dimension currentSize = new Dimension();
        final Rectangle rectClip = new Rectangle();
        
        public void paint(Graphics g) {
            getSize(currentSize);
            g.getClipBounds(rectClip);
            viewer.renderScreenImage(g, currentSize, rectClip);
        }
    }

Schnell und einfach ohne Anschlusswechsel zur Lycos DSL Flatrate wechseln und 3 
Monate kostenlos ab effektiven 5,21 EUR pro Monat im ersten Jahr surfen.
http://www.lycos.de/startseite/online/dsl/index.html?prod=DSL&trackingID=email_footertxt
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to