JMEDesktop: Creating Box around text in JTextComponent

Hi,



How can I create a com.jme.scene.shape.Box around text within a JTextComponent within a JMEDesktop?



I can get the Swing-based coordinates within my JTextComponent, but don't know how to convert these coordinates to create a Box that surrounds this text.  Looks like I need to convert to JME's scenegraph-based coordinates.  Any ideas?



Thanks!

Mark

If you render your box in the ortho queue, then you will need to use screen coords (like swing).