Results 1 to 1 of 1
  1. #1
    Andolamin is offline Member
    Join Date
    Jun 2010
    Posts
    1
    Rep Power
    0

    Default Painting onto Aero Glass

    I'm using SWT to produce glass windows. I have the code working for the glass in the client area, but I'm running into a problem any time I try to add something to it. Any time I add anything that's dark to the window (painting dark images, drawing rectangles, etc) it will show up as transparent in that section. In fact, it seems to be doing it for all colors that aren't pure white, with varying levels of transparency.

    I have a feeling it's because you have to set the composite to black in order for the transparency to work in the first place. I found a site talking about doing it in c sharp that recommends first adding anything you want to draw to a path, and then filling the path, but when I tried that I couldn't add images to the path and the rectangles I added still produced the same effect.

    I know it's possible as I can see it done here (almost exactly what I want to do), but I can't get it to work. Any ideas?

    Thanks in advance!

    [edit]Nevermind, I was able to solve this by adapting this code, using a Label with an image added to it.[/edit]
    Last edited by Andolamin; 06-04-2010 at 04:24 AM. Reason: Solved

Similar Threads

  1. Need help with synchronous painting
    By JavaRulez in forum Advanced Java
    Replies: 7
    Last Post: 05-09-2010, 09:34 AM
  2. Images don't painting
    By daniel.henrique in forum New To Java
    Replies: 2
    Last Post: 02-12-2010, 12:48 PM
  3. Objects painting themselves?
    By martypapa in forum Java 2D
    Replies: 19
    Last Post: 02-06-2010, 05:08 AM
  4. painting problem
    By hannes in forum New To Java
    Replies: 3
    Last Post: 01-17-2010, 12:44 PM
  5. JPanel not always painting everything
    By ekted in forum AWT / Swing
    Replies: 0
    Last Post: 11-26-2009, 12:24 PM

Posting Permissions

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