Along these same lines, if we use JComponent.setDoubleBuffered(true), it would be really useful if there were a way to get a BufferedImage or even just Image of that JComponent.
-- Russell



[EMAIL PROTECTED] wrote:
Hi Dmitri,

I already know from the Interoperability between Java2D and JOGL. But thats not exactly what I want ;-)

I dont need a visual representation of a Swing component I only need a Image of it. The trick is to let Swing paint into the Image instead of the Frame. As I said I could invoke paintComponent() explicitly but I would never see events like mouse rollover or I even could not edit a TextField.

After I have a Image I could map it as texture anywere in the 3d world I like - I just need to transform the mouse coords... but thats step 2 in step 1 I will render it into a polygone with the same size and location as it would be painted by default.
[Message sent by forum member 'bienator' (bienator)]

http://forums.java.net/jive/thread.jspa?messageID=154875

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".


  

=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to