The Artima Developer Community
Sponsored Link

Java Answers Forum
Swings in Java

1 reply on 1 page. Most recent reply: May 28, 2003 12:16 PM by Gyanaranjan Das

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Sarath Kumar

Posts: 4
Nickname: sarath
Registered: May, 2003

Swings in Java Posted: May 26, 2003 11:00 PM
Reply to this message Reply
Advertisement
Hello,
I'm having basic doubt. Why the Swings are light weight and AWT are heavy weight?. What is the basic different between " Heavy weight component and Light weight component", and also what is "peer" class. Please porvide me answer with exaples.


Gyanaranjan Das

Posts: 1
Nickname: gyana
Registered: May, 2003

Re: Swings in Java Posted: May 28, 2003 12:16 PM
Reply to this message Reply
A heavyweight component is one that is associated with its own native screen resource (commonly known as a peer). A lightweight component is one that "borrows" the screen resource of an ancestor (which means it has no native resource of its own -- so it's "lighter").

Flat View: This topic has 1 reply on 1 page
Topic: Java DOM - parse synchronous mode Previous Topic   Next Topic Topic: setVisibleRowCount()

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use