Hi Everyone,
my canvas3d can be switched on/off (its parent  panel removed or added) it
used to work ok with the previous j3d version 1.1.3 but now, my scene is not
rendered anymore when restored, a white screen yet it is still active, i can
even trigger picks and added objects (once the restore is done) are
represented... any idea???


Olivier Fillon    Minestar Project
[EMAIL PROTECTED]  Mincom Limited
Ph.+61-7-3303-3344               61 Wyandra Street
Fax+61-7-3303-3232               Teneriffe Qld. 4005.
Australia
Company home page: http://www.mincom.com/
Personal home page: http://www.powerup.com.au/~fillon
--- A word from our sponsor ---
This transmission is for the intended addressee only and is confidential
information. If you have received this transmission in error, please delete
it and notify the sender. The contents of this E-mail are the opinion of the
writer only and are not endorsed by Mincom Limited unless expressly stated
otherwise.

--
-----Original Message-----
From: Pascal Debarge <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, February 16, 2000 9:31 AM
Subject: Re: [JAVA3D] how to solve that problem


>your scene variable also has to be final.
>An alternative is to add a removeChild method to your current class and
call it
>from your action listener class :
>
>class yourClass
>{
>
>  final Button button1 = new Button("Stop");
>  button1.addActionListener( new ActionListener() {
>      public void actionPerformed(ActionEvent e)
>            {
>                 removeChild(1);
>             }
>    );
>
>removeChild(int i)
>{
>         scene.removeChild(1);
>}
>
>}
>
>hope this helps.
>
>Pascal.
>
>SUBSCRIBE JAVA3D-INTEREST peter wrote:
>
>> dear all:
>>  i have created a button and when it was pressed, a child under a BG will
reomve.and the coding like below:
>>
>>   final Button button1 = new Button("Stop");
>>   button1.addActionListener( new ActionListener() {
>>       public void actionPerformed(ActionEvent e)
>>             {
>>              scene.removeChild(1);
>>              }
>>     );
>>
>> where scene is a Group or BG.But when compile , it show the error message
"Attemptto use a non-final variable scen from a different method,From
enclosing blocks,only final local variable are available"
>>
>> Can anyone help me!Urengy.And need the whole source coding to take a
look,pls tell me.thx..
>>
>>
===========================================================================
>> 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".
>

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