the 2 usages of new Frame() should be replace by Dialog f = new Dialog(new Frame()); Dialog f = new Dialog(new Frame(), null, false, device.getDefaultConfiguration()); respectively. This will ensure no taskbar icon flashes on the desktop. Trivial tests seem to show that the QueryCanvas is able to work on a Dialog as well as a Frame.
I suggest to do this change in Java3D 1.7.0.
change as specified