Hi all,
Is there a way to put a swing component into a GLCanvas? That is put a swing component in the 3D scene.
Thank in advice for any suggestion.
Hi all,
Is there a way to put a swing component into a GLCanvas? That is put a swing component in the 3D scene.
Thank in advice for any suggestion.
Not at the moment. We were looking toward this in the design of the Overlay and related classes but there hasn’t been time to investigate this recently.
Well it is actually possible but not all Swing components are working. I tried it around 1 year before but it was very hacky (and not feature complete).
What i did is actually some event re-dispatching (Canvas to Component under “virtual” cursor) and rendered the GUI to texture. The problem is that overlay effects where not rendered at all. (JComboBox dropdown, JTextField text highlighter, Text cursors… are all rendered as overlay effect)
btw. asantiago, your project needs really more attention! Why not queue a blog entry into dzone or the java.net frontpage? - great work!