aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes help me with links on peers, light-, heavy-weight foreigners Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "help me with links on peers, light-, heavy-weight foreigners" Watch "help me with links on peers, light-, heavy-weight foreigners" New topic
Author

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

Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898

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

Joined: Jul 13, 2001
Posts: 269
Try
Mixing heavy- and lightweight components on the Sun site.
W.
Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
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

Joined: Jul 13, 2001
Posts: 269
What is a standalone link?
W.
Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
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

Joined: Oct 18, 2000
Posts: 4121

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


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
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

Joined: Aug 30, 2001
Posts: 898
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

Joined: Jul 13, 2001
Posts: 269
I do not why you are redirected to http://web3.javasoft.com/products/jdk/1.1/docs/guide/awt/designspec/lightweights.html
The real link is following http://java.sun.com/products/jfc/tsc/articles/mixing/index.html
W.
Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
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

Joined: Jul 13, 2001
Posts: 269
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

Joined: Aug 30, 2001
Posts: 898
Wilfied,
thanks, it works
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: help me with links on peers, light-, heavy-weight foreigners