+ 1
What are heavyweight and lightweight components
Why we use frame as component because it's container~~~??
2 odpowiedzi
+ 2
There are two kinds of graphics components in the Java programming language:
-Heavyweight
-Lightweight
A heavyweight component is associated with its own native screen resource (commonly known as a peer).
Components from the java.awt package, such as Button and Label, are heavyweight components
+ 1
If you type in:
component.getWeight(); You'll get a CompPoint value which is inherited by the Point class.
The CompPoint's Y value (which is marked as Size) will indicate how much size and tense the component is to the PC and the X value (which marks the complications value) indicates how complicated it was to make the component.
The bigger the numbers the heavier the component.
Once Y passes 1502 you'll know it's a heavy component and once the X passes 406 it adds up.
No I have no idea what it is. But I hope you enjoyed me writing a ton off.... :P sorry for the spam