• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tooltip in Java3D

 
Neeba Rebbaca
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Neeba Rebbaca
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. I'll try it out...
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot. Is it possible to set tooltip only for the cube???
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not exactly, but for any polygon drawn in the boundary box.
 
Neeba Rebbaca
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, you haven't initialized SimpleUniverse instance 'u', its causing NPE. Second, isn't above links don't have any help for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic