Results 1 to 4 of 4
  1. #1
    cartoon_20 is offline Member
    Join Date
    Apr 2010
    Posts
    4
    Rep Power
    0

    Default Transarent background over heavyweight components

    I've got a problem. In LayeredPane I have 2 components: heavyweight coponent and JComponent(or any other what I could draw text in) that is placed above the first one. I'd like JComponent to have transparent background, but it has black background. Heavyweight coponent is a component that renders video and JComponent is component what I draw text in. This text should be printed with transparent background.

    I tried to use GlassPane but glass content of glassPane was displayed above lightweight components and below heavyweight component.

    Is there possibility to draw text above heavyweight coponent (Canvas)?

    ps. I can't overload paint method because I got object of class HeavyComponent that is subclass of Canvas.

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,226
    Rep Power
    6

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Multiple cross-posts. See: Swing - Component with transparent background above heavyweight component

    To the original poster, welcome to the forum, and I hope your question gets answered, but I do request that if you cross-post a question you provide links to the other cross-posts. Nobody likes duplicating work that's already been done.

    For more information on why this is bad, please see this link: JavaRanch - Be Forthright When Cross Posting To Other Sites

    Thanks for your cooperation.

  4. #4
    cartoon_20 is offline Member
    Join Date
    Apr 2010
    Posts
    4
    Rep Power
    0

    Default

    ok, sorry. So far I don't know how to solve my problem. I don't even know if this problem can be resolved.

Similar Threads

  1. How to Run a .exe in background???
    By jazz2k8 in forum New To Java
    Replies: 9
    Last Post: 01-21-2011, 11:27 AM
  2. BackGround JRadioButton
    By antonello12 in forum AWT / Swing
    Replies: 1
    Last Post: 10-10-2009, 06:33 AM
  3. Background image
    By leiferouis in forum New To Java
    Replies: 9
    Last Post: 03-08-2009, 05:49 PM
  4. ImageIcon background
    By Yannick in forum New To Java
    Replies: 11
    Last Post: 02-12-2009, 04:13 PM
  5. BackGround & ForeGround
    By hungleon88 in forum Advanced Java
    Replies: 3
    Last Post: 08-31-2008, 07:20 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •