Re: VisAD Component "weight"

Hi Bruce,

Yes, VisAD displays that use Java3D are heavyweight. This is a restriction of Java3D. And unfortunately, heavyweight components will not play nice inside JInternalFrames. Sun's guide to mixing heavyweight and lightweight components -- -- simply says not to do it at all, with no listed workarounds. And there is a longstanding (almost 7 years now) request for enhancement on Sun's bug list asking for a heavyweight JInternalFrame --;:YfiG?bug_id=4154448.

But there is hope, because the recently released Java 1.5 now supports explicit Z-ordering built into AWT (and by extension, Swing). I have not tested it, so I am not certain whether this functionality addresses the heavyweight mixing issue, but it is worth a look. Here is an article describing the feature:

If you test this, I'd be interested to hear whether it works.


Bruce Flynn wrote:

Hello all,

I have a Java application that displays several VisAD graphs that is currently a Multiple Document Interface application that uses all JFrames. I'm attempting to convert it to a Single Document Interface application using JDesktopPanes and JInternalFrames. The problem is that the VisAD graph components seem trounce on all the other Swing components. Are VisAD graph components heavyweight components? Is there a way to make the VisAD components play happily with the Swing components?


P.S. Sorry about the large picture file but it probably does a better job of explaining my problem than I do!

  • 2005 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: