Add transparent JPanel upon AWT Component to paint on

前端 未结 4 1313
时光说笑
时光说笑 2021-01-22 02:49

I\'ve got a Problem: In my Java application I\'ve got an AWT Component (cannot change that one) that streams and shows an avi-file. Now I want to draw upon this movie and though

相关标签:
4条回答
  • 2021-01-22 03:01

    The Mixing Light and Heavyweight Components article explains how this is handled only in the most recent version of the JDK.

    0 讨论(0)
  • 2021-01-22 03:04

    did you try a GlassPane since i think thats exactly it's use case. soemthing like JFrame.setGlassPane() if i remember correctly. check here:

    Java API JFrame

    GlassPane examples

    0 讨论(0)
  • 2021-01-22 03:13

    Try running Stream and Drawing on separate thread. I think this can help

    0 讨论(0)
  • 2021-01-22 03:16

    I've searched for a heavyweightcomponent that could help me but I didn't found one, and regarding the internalframes I don't know how you managed to set the opacity to 50. All what I found about seetting the opacity wast the method setOpaque(boolean value) and this doesn't help me at all. Would you please explaine me how did you set that opacity. It's my final alternative either that or I'll have to change my entire project design.

    0 讨论(0)
提交回复
热议问题