>
> SUBSCRIBE JAVA3D-INTEREST peter wrote:
>
> > 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
I believe there is no method removeChild() without a parameter,
as far as I know the method requires the child's index: removeChild(int index).
Regards Jörg
--
http://w5.cs.uni-sb.de/~baus
Email : [EMAIL PROTECTED]
Phone : +49-681-302-2016
Fax : +49-681-302-4136
===========================================================================
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".