Solved

LIGHTWEIGHT AND HEAVYWEIGHT COMPONENTS

Posted on 2004-11-01
503 Views
Last Modified: 2012-08-13
HI ALL,

can any one, tell me the exact difference between lightweight components and heavyweight components.

and wht is meant by a component being rectangular?
wht is meant by z-ordering?

Regards
Raj
0
Question by:rajeshml
    2 Comments
     
    LVL 92

    Accepted Solution

    by:
    heavyweights have an assocated native resource.
    lightweights are implemented purely in java.

     http://java.sun.com/products/jfc/tsc/articles/mixing/
    0
     
    LVL 24

    Expert Comment

    by:sciuriware
    In other words:
    lightweight components are platform-dependently implemented to interact with
    the local window manager.
    heavyweight components use the lightweight components to implement
    SWING. In fact SWING could have been written by you.
    Note: it is dangerous to mix AWT (light) components with their SWING (heavy)
    counterparts in ONE application: things might lock up.
    ;JOOP!
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

    909 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now