jQuery in Action, 2nd edition*
The moose likes Swing / AWT / SWT and the fly likes Transparent vs Opaque pixels Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Transparent vs Opaque pixels" Watch "Transparent vs Opaque pixels" New topic
Author

Transparent vs Opaque pixels

John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Hi Ranchers,

I read in this webpage that below two are differences between a light weight component / heavy weight component.
A lightweight component can have transparent pixels; a heavyweight is always opaque.
A lightweight component can appear to be non-rectangular because of its ability to set transparent areas; a heavyweight can only be rectangular.

Could you please share your thoughts on the texts in bold in the above quote.
1. What is a transparent pixel, how it will appear on the GUI screen.
2. What is opaque
3. What is the meaning of appearing non-rectangular and rectangular.

Thanks much!
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2153
    
    7
Maybe this article on Painting will help you: http://java.sun.com/products/jfc/tsc/articles/painting/index.html
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Thanks Rob Camick... that was really useful and what I was exactly looking for.

Is there a webpage that lists all such good articles by Sun? A navigation page that lists good articles such as like Heavyweight & lightweight and Painting Article will be good.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

If you can choose the right keywords, Google usually finds what you were looking for. I haven't even bookmarked those pages, but I'm always able to find them when I need them.


luck, db
There are no new questions, but there may be new answers.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Transparent vs Opaque pixels
 
Similar Threads
meaning of lightweight?
can't extend AWT component?
lightweight component
Background Color
Images on JLabels