Sorry for my English, but I hope I can help U.
I finished to develop e Java3D project a few day ago.
In many cases, I observed that some exception dued to AWT event (like
pressing AWT or Swing Button), are instead dued to not properly capabilities
setting.
In your case, I think that the children has no capabilitiy to detach from
parent.

----- Original Message -----
From: SUBSCRIBE JAVA3D-INTEREST peter <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 16, 2000 5:13 AM
Subject: [JAVA3D] how to solute that problem


> dear all
> i had created a button that is used to remove a BG child when the button
is pressed.
>
>   final Button button1 = new Button("Stop");
>   button1.addActionListener( new ActionListener() {
>   public void actionPerformed(ActionEvent e)
>   {
>     processAction();
>   });
>
> private void processAction()
> {
>      scene.removeChild();
> }
>  And when compile , it is no error. but when run, when i press the
> button
> it show the error like below
>
>
> "Exception occured during event dispatching:
>  java.lang.NullPointerException:
>    at Test.processAction (Test.java:876)
>    at Test.processEvent(button.java,compiled code);
>    at java.awt.Button.processActionEvent(Button.java:308)
>    at java.awt.Button.processEvent(Button.java:281)
>    at java .awt.EventQuene.dispatcheveny(eventquene.java,compile code);
> ....
> "
> can anyone help me? ugrency
>
>
===========================================================================
> 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".

===========================================================================
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".

Reply via email to