This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes tooltip in Java3D Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "tooltip in Java3D" Watch "tooltip in Java3D" New topic
Author

tooltip in Java3D

Neeba Rebbaca
Ranch Hand

Joined: Oct 21, 2008
Posts: 148
is it possible to add tooltip on mouse over for shapes(colorcube). Like we do in swing(for rectangle).

Please help me...
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

There is no straight forward API methods Java 3D have for tooltip. You have to play with mouse listeners.
Though, here is the another approach:
http://www.mail-archive.com/java3d-interest@java.sun.com/msg09631.html.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Neeba Rebbaca
Ranch Hand

Joined: Oct 21, 2008
Posts: 148
Thanks for the reply. I'll try it out...
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Welcome, also its my personal experience that, here at JR, you'll find very few Java 3D experts, so better post your J3D queries at dev.java.net forum.
Neeba Rebbaca
Ranch Hand

Joined: Oct 21, 2008
Posts: 148
Thanks alot. Is it possible to set tooltip only for the cube???
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Not exactly, but for any polygon drawn in the boundary box.
Neeba Rebbaca
Ranch Hand

Joined: Oct 21, 2008
Posts: 148
I'm very new to Java3D and i'm totally feel very vague. I don't have any idea how to use PickMouseBehavior for a ColorCube. I tried to google, but unfortunaltely i didn't get anything unseful...Please help me. Here goes my code. I tried to draw some blocks. But i want to select each block and get its co-ordinates...

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

First, you haven't initialized SimpleUniverse instance 'u', its causing NPE. Second, isn't above links don't have any help for you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tooltip in Java3D
 
Similar Threads
Ajax tooltip position problem
Pop up a message
Tooltip stay longer?
Increase Mouse Tool Tip
Best tooltip library?