I’m having trouble with a large black rectangle when I introduce my java3d viewer for the first time. The rest of the game (I use the term loosely- it is an educational thing) uses normal Swing stuff and when I switch the view from a normal JPanel to a Canvas3D a large area of my screen fills with a black rectangle. This goes outside the limits of my application and does not clear up until I move or resize the application, forcing a repaint. Calling repaint does nothing, for some reason.
Anyone know what is causing this? I get a similar effect when I open two java3d applications but I am being very careful to only use one Canvas3d for everything I do here. Which isn’t to say I’m not creating two, but I don’t think I am.