Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help me with links on peers, light-, heavy-weight foreigners

 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

David Geary "Graphic Java 1.2. Mastering JFC" 3d Ed., Vol.1. AWT , Sun Microsystems Press, A Prentice Hall Title, p.6
"Lightweights do not have peers and rendered in their heavy-weight container's window instead of one's of their own. As a result, lightweights do not incur the performance penalties associated with having their own opaque window and have transparent backgrounds"

is the most comprehensible and complete content that I have seen on the matter, even from big books.


  • ? I do not quite get why should we have window and cannot place components directly?


  • ? How are we getting rid of natives with obligatory heavy-weght containers...


  • and I am confused in many points here and there.
    I am rereading dozens of times some available to me phrases about heavy-/lightweights, peers, opaques, natives, indians.... May anybody give me good links on this mess?

    [This message has been edited by G Vanin (edited October 29, 2001).]
 
Wilfried LAURENT
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try
Mixing heavy- and lightweight components on the Sun site.
W.
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wilfried, thanks.
Unfortunately it is standalone link.
The only link from there
is dead (currently?) and this topic is really pain in the ass because I use GUI elements heavily and loose my time heavily and frequently very unexpectedly
Any more links?

[This message has been edited by G Vanin (edited October 30, 2001).]
 
Wilfried LAURENT
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is a standalone link?
W.
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no references inside. You may break your network card and there will be no damage to reading content of that web-page, once it is in your PC's memory
Do you know the rules of fast-reading? It is forgetting about stand-alone words and getting the sense of the written (and never returning back). Was it not understandable that it was necessary asking?
[This message has been edited by G Vanin (edited October 30, 2001).]
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't have a problem going to the link on the Sun site about mixing light and heavy weight components... The main thing to understand is this: Heavyweight has a native peer. A native peer is like having a MFC label for every AWT label on your Java GUI when it's running on Windows or an X button for every AWT button on your Java GUI running on UNIX. Swing uses only lightweight components ( exceptions are all top level widgets, like frames, dialogs, etc. because they have to have native peers to exist... ). Lightweight components are basically just a drawing of a button or label drawn on the frame. There is no MFC widget or X widget behind it taking up native resources.

-Nate
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nathan,
thanks
I tried again that link, inside the given to me link:

and again received

O servidor DNS retornou:
DNS Domain 'web3.javasoft.com' is invalid: Host not found (authoritative).

I think that you oversimplify the matter. In practice a lot of details are important, for example, if peer counter-part is already created at the moment of method's invocation. It is frequently really frustrating to deal with SWIFT You just have a visual component and after editing a little bit, in quite different place, it already does not appear
Is MFC - MS Foundation Classes? It is better if you refer to Java... I am not professional programmer; I am just a beginner

[This message has been edited by G Vanin (edited October 30, 2001).]
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nathan,
that dead link ("The only link from there") does not seem to be on "site about mixing light and heavy weight components". It is only about light-weight one, it is inside of advised to me link.
[This message has been edited by G Vanin (edited October 30, 2001).]
 
Wilfried LAURENT
Ranch Hand
Posts: 269
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wilfried,
I really need yelling to you.
that link is inside the page that is pointed by your link and that link is the only one inside that your reference and my net cannot resolve it. I think I am repeating this already 4th time and even posted as a separate thread
[This message has been edited by G Vanin (edited October 31, 2001).]
 
Wilfried LAURENT
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, it is clearer now. In fact, the link has not been updated in that white paper. It should now point to:
http://java.sun.com/products/jdk/1.1/docs/guide/awt/designspec/lightweights.html
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wilfied,
thanks, it works
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic