Dear Katja, > I want the user to see the picked path (points). If the user highlights an > point in the list, the point on the canvas needs to be "highlighted" too (and > the other way around). What is the best way of doing that? I can only come up > with the idea of putting little spheres in the scenegraph and recompiling > it.
The sphere is a good idea, recompilation is not IMHO. Have the sphere (or more of them) in your scenegraph under a TransformGroup and that under a Switch from the beginning: + someGroup | | | + aSwitch | | | + tg1 | | | | | + sphere1 | | | + tg2 | | | | | + sphere2 . . That way you can transform each indication sphere/object and switch it's visibility on and off at will. > But that still does not solve the problem of showing on the canvas which > point is marked in the list. JList has an associated ListSelectionModel that will notify ListSelectionListeners about selection changes. Implement your own ListSelectionListener, that gets the selected value(s), transforms the indication sphere(s) accordingly and switches visibility on; add that to your JList/ListSelectionModel. Hope this is what you asked for, regards Georg ___ ___ | + | |__ Georg Rehfeld Woltmanstr. 12 20097 Hamburg |_|_\ |___ [EMAIL PROTECTED] +49 (40) 23 53 27 10 =========================================================================== 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".
