Isaac, I'd prefer that you PLEASE send your postings ONLY to the j3d mailing list and not copy me personally! Since I'm reading the mailing list anyways, I sure will read your postings too!
Nevertheless, as far as your recent problem is concerned, again I have no clue at all what you are trying to do and why!!! It would be really helpful to the friendly people that are kindly trying to stand by your side in figuring out what and why things don't work, if you gave them a little background info, or at least some rationale why your are doing what you are doing! H. ----- Original Message ----- From: "Brobbey,Isaac (neuron)" <[EMAIL PROTECTED]> To: "'Hans Horn '" <[EMAIL PROTECTED]> Sent: Wednesday, January 15, 2003 3:00 PM Subject: I need help: Mouse problem > hi: > > i return a JPanel from this method which i add to a frame and show the frame > to the user. this is the method that does the detaching > > > private JPanel showChildren(boolean boon,int nextChild) > { > if(boon != false && isRunning() ) > { > > if (scene!=null) // this scene has six Branchgroups children > { > //System.out.println("enum size="+enumKids); > BranchGroup brg = (BranchGroup) scene.getChild(nextChild); > if (brg instanceof BranchGroup ) > { > System.out.println("brg > size="+brg.numChildren()); > BranchGroup br= new BranchGroup(); > brg.detach(); > br.addChild(brg); > > GraphicsConfigTemplate3D template = new > GraphicsConfigTemplate3D(); > GraphicsEnvironment env = > GraphicsEnvironment.getLocalGraphicsEnvironment(); > GraphicsDevice device = env.getDefaultScreenDevice(); > GraphicsConfiguration config = > device.getBestConfiguration(template); > JPopupMenu.setDefaultLightWeightPopupEnabled(false); > ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false); > > Canvas3D canvax = new Canvas3D(config); > canvax.addMouseListener(this); > u2 = new SimpleUniverse(canvax); > > pickCanvas = new PickCanvas(canvax, brg); > pickCanvas.setMode(PickTool.GEOMETRY_INTERSECT_INFO); > pickCanvas.setTolerance(0.0f); > canvax.setCursor(new Cursor(Cursor.HAND_CURSOR)); > > > ViewingPlatform viewingPlatform = u2.getViewingPlatform(); > viewingPlatform.setNominalViewingTransform(); > > // add an orbit behavior to move the viewing platform > OrbitBehavior orbit = new > OrbitBehavior(canvax,OrbitBehavior.STOP_ZOOM); > orbit.setSchedulingBounds(bounds); > viewingPlatform.setViewPlatformBehavior(orbit); > > u2.addBranchGraph(br); > > JPanel f = new JPanel(new BorderLayout()); > f.add(canvax,"Center"); > > return f; > } > } > > thanks: > > > Isaac > =========================================================================== 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".