Hello,

For a while I've been wondering the following: If there's an uncaught bug in
some action, the rendering stops. To make sure that this is not a bug in our
way of using Java3D, I modified the HelloUniverse application and got the
problem duplicated there also. I added the following lines in the init
method:

    Action dummyAction = new AbstractAction(){
        public void actionPerformed(ActionEvent e){
            throw new UnsupportedOperationException("crash");
        }
    };

    JButton dummy = new JButton("D");
    dummy.addActionListener(dummyAction);

    add(dummy, BorderLayout.SOUTH);

If I now press the "D" button, the rendering of the canvas stops. This must
be a known bug. Is there a workaround for it? Of course, there should never
be exceptions, but I remember that even I have sometimes written code that
crashes :)

Attached is the full modified HelloUniverse.java.

Regards,

Pasi

------------------------------------------------------------------
Solibri, Inc.                    tel   : +358 9 6860 6463
Lauttasaarentie 48 B             gsm   : +358 50 3684634
00200 Helsinki, Finland          fax   : +358 9 6860 6460
http://www.solibri.com           email : [EMAIL PROTECTED]
------------------------------------------------------------------

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Attachment: HelloUniverse.java
Description: JavaScript source

Reply via email to