Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transparent vs Opaque pixels

 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2580
9
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe this article on Painting will help you: http://java.sun.com/products/jfc/tsc/articles/painting/index.html
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5126
11
Java Netbeans IDE Opera
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic