This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Transparent vs Opaque pixels" Watch "Transparent vs Opaque pixels" New topic

Transparent vs Opaque pixels

John Jai

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: 2454
Maybe this article on Painting will help you:
John Jai

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

Joined: May 03, 2008
Posts: 5115

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.
I agree. Here's the link:
subject: Transparent vs Opaque pixels
It's not a secret anymore!