Hi Ewan,

Without more details it's hard to give a definitive answer to your problem.

But I suspect it's actaully a Swing thread issue and nothing to do with
Java3D. The issue is documented well on java.sun.com, search for SwingWorker.

Rgds

Paul

>Delivered-To: [EMAIL PROTECTED]
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
>Date: Thu, 17 Jan 2002 19:34:52 -0000
>From: Ewan Borland <[EMAIL PROTECTED]>
>Subject: [JAVA3D] JProgressBar not showing
>To: [EMAIL PROTECTED]
>
>Hi All,
>
>I've implemented a loader for a Java3D app I've got but it's very important
>for me to get some kind of progress monitor. Bearing in mind the Loader
>interface doesn't support such I opted for the approach of using a
>PROGRESS_MONITOR flag which instructs the loader to display a JFrame with a
>short message and a JProgressBar.
>
>Progress bar is updated very simply by measuring available bytes in the
>input stream and the system works fine independantly of my app. However as
>soon as I have a canvas3D and a SimpleUniverse the JFrame shows up but none
>of it's components are ever drawn. I've tried adjusting the priority of the
>Java3D threads but with no gain?
>
>I set my canvas to output a simple message every time it rendered a frame
>and the change in priority is definitely slowing down the rendering but my
>Swing components still aren't showing up. It's not even that they're not
>being updated frequently enough - they just aren't appearing.
>
>I followed the discussion on Java3D threads and Swing interactions etc. that
>has been ongoing but they all seem to deal with eventhandling such as button
>presses etc. whereas I only need my components to appear. I've even echoed
>to stdout the progress values as they are set and the progress bar is being
>updated successfully!
>
>All clues, suggestions or observations will be gratefully received,
>
>Cheers,
>Ewan
>
>
>P.S. jdk1.4.0 beta3,  j3d1.3 beta1
>
>----------------------------------------------------------------------------
>---------------
>
>    Ewan Borland
>
>    Computing Science
>    University of Glasgow
>
>    e-mail : [EMAIL PROTECTED]
>                [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".

----------------------------------------------------------
Paul Byrne                      Email : [EMAIL PROTECTED]
Sun Microsystems                Phone : (650) 786 9926
Visualization Software Group    Fax   : (650) 786 5852
----------------------------------------------------------

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