Why the AWT components are called heavy-weight and SWING as light-weight?

Why the AWT components are called heavy-weight and SWING as light-weight?.
Building our own components means overhead on JVM. hence in what sence the SWING components are called light weight.?
I know that the Swing componets are the components which are not going to depend upon peer classes and render, OS independent LOOK n FEEL.
Thanks,
Sanath Kumar

All extensions of Component are considered lightweight since, as you point out, they don't have their own dedicated native peer.
Essentially a lightweight component only has a canvas on which to draw itself and some means of receiving events from the system. In fact, there is no need to have one of these "canvas" and "event" objects for each component - the parent component can manage these abilities on behalf of its children. Eventually you end up with only top-level components needing to be heavyweight in order to communicate with the windowing system.
A lightweight component therefore has the minimal dependency on the underlying windowing system giving you maximum cross-platform flexibility.
It is usually true that lightweight => slower and heavyweight => faster since it is reasonable to assume that native peers will be optimal for the windowing system. However, that's not the point of the lightweight/heavyweight distinction.
Hope this helps.

Similar Messages

  • As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know each Java Class that is involved in flow.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

  • Error "Some of the application components are missing from the Application directory, Please reinsta

    I downloaded Photoshop Extended about a week ago... the second time I opened it, an error message came up saying "Some of the application components are missing from the Application directory, Please reinstall the application."  So I uninstalled it, then re-intalled it.  I was able to open it successfully after that - and I used it once.  I have just gone to open it again and it is reading the same error.  This is very frustrating - why is it doing this?  I don't want to have to unintall and reinstall everytime I want to use it.  Please help

    I want to bump this topic, again. So far the clues I've found are that there may be problems when the program was installed in one user account, and used in a different one. Perhaps there is a language setting, too. Can anyone give tips on this error for Mac, specifically Lion OS?

  • Why people in SAP are called consultants

    Hi SDN,
    We have been saying others that we are SAP consultants.
    whereas abapers are just like any other developers..
    why people in SAP are called consultants ?
    thanks.
    maahi

    SAP Consultants
    ABAP consultans
    Google the word consultant and find out.
    Saying ABAP consultant appears to be more professional that saying ABAP developer. A developer will just write code. A consultant will liase with the customer and find out the needs, look for the best solution etc.

  • Error when attempt to open Photoshop in Windows Vista, "Some of the application components are missi

    Using Windows Vista-32. Installed CS4 suite & used Photoshop and other components but randomly one day it stopped working. Clicked to open and received error, "Some of the application components are missing from the application directory, Please reinstall the application."
    I uninstalled & reinstalled entire Suite and just Photoshop several times with no success. When I reinstall, I receive error message,
    Adobe Photoshop CS4 English Language Pack
    Error:
    Error 2.
    LangPack (English) for DeviceCentral
    Error:
    Error2.
    Solutions I have used include:
      -  replacing System Color Profile library by creating a different folder on desktop...
      -  replacing Backup Key for Adobe CS4
      -  Administrators & System are listed & permissions for security are set to Full Control
    PLEASE HELP! I have assignment Due Tomorrow & Can't Access Software I PAYED Big $$$$ FOR!
    Phone support won't help w/o paying a fee???

    You've done something to your system, or it's possibly gotten a malware infection.
    You can't even reinstall Photoshop?  Have you tried completely removing it, including running the Creative Suite Removal script? 
    How recently did it work?  Have you tried System Restore?
    -Noel

  • PS CS4 64-bit (in Web Premium CS4) on Win 7 PC.  I did a duplicate file check on my hdd and deleted dup files. Now I get "Some of the application components are missing from the Application directory, Please reinstall.."

    PS CS4 64-bit (in Web Premium CS4) on Win 7 PC.  I did a duplicate file check on my hdd and deleted dup files. Now when I try to run PS 64-bit I get "Some of the application components are missing from the Application directory, Please reinstall the application." When I do this, it seems to install correctly until the very end, then it says "Installation Complete With Errors", and when I try to run I get the same 'component missing message'. What can I do? PS 32 bit runs fine. Some of the other applications ib Web Premium say the shortcut has been changed or removed. I appreciate your help...Thank you

    Best advice I can think of is to uninstall and run the Clean Script from here.
    Adobe - Adobe CS4 Clean Script

  • I receive an error message that some of the application components are missing when trying to open Photoshop CC 64-bit

    Hi,
    I'm using Windows 8.1 and I can see photoshop CC 64 bit. But when I'm launching it, it throws an error "Some of the application components are missing from the Application directory, Please reinstall the application". I've reinstalled twice but getting the same error. Whereas the 32 bit application works fine. Any help?

    Branching this to a new discussion.
    Govinda_s13 are you still receiving the error messages referenced above?

  • 'Some of the application components are missing from the Application directory. Please reinstall the application.'

    I tried opening PS and this message popped up 'Some of the application components are missing from the Application directory. Please reinstall the application.' I cannot find the Reinstall button?

    I followed these instructions but cannot find how to reinstall PS. When I click on the membership link the page displays as NOT BEING FOUND.
    Quit all applications. 
    In the Finder, navigate to the Photoshop application folder. 
    Do one of the following: 
    If the Locales folder is not listed within the application folder, then skip to Step 5.
    If the Locales folder is listed within the application folder, then drag the Locales folder to the Trash.
    Choose Finder > Empty Trash. 
    Start the installer for Photoshop or your edition of the Adobe Creative Suite. 
    If you purchased boxed software, then insert the installation DVD-ROM into your computer's DVD drive.
    If you purchased downloadable software from the Adobe Online Store, then double-click the disk image (.dmg) file or files that you downloaded. (If you no longer have the downloaded disk image file or files, then log in to your account at www.adobe.com/membership to download the installer.)

  • Some of the application components are missing from the Application directory, Please reinstall the

    Some of the application components are missing from the Application directory, Please reinstall the application. This is what i am getting tying to open Photoshop Cs6???

    Renée in the future when removing Photoshop CC please utilize the uninstaller located in the Applications/Utilities/Adobe Installers folder.  Please run the uninstaller and then reinstall.  If you continue to face difficulty reinstalling Photoshop CC then please see CC desktop lists applications as "Up to Date" when not installed - http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html.

  • Just updated my iMac to OS X Yosemite and my Photoshop will no longer open. Pop up message informing Some of the application components are missing from the Application directory. Please reinstall the application. I have the pay monthly package and don't

    Just updated my iMac to OS X Yosemite and my Photoshop will no longer open. Pop up message informing, Some of the application components are missing from the Application directory, Please reinstall the application. I have the pay monthly package and don't know where to start.

    Do as it says: Reinstall the program. Run the cleaner tool and let CC app do the magic.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Mylenium

  • Open in Photoshop CS5 errors with "Some of the application Components are Missing...

    After doing a migration from one mac to another mac with the Migration Assistant,  when I try to edit a lightroom file with the Open In CS5 I get a dialog that comes up "Some of the application Components are Missing from the Application directory, Please reinstall the application.
    Well I have reinstalled photoshop, actually uninstalled it first, the reinstalled twice...once with "keep preferences" and once without.  I have also run the Adobe Upgrader and everything is up to date.  Lightroom is up to date.
    Any ideas??

    Since you can open a photo in CS5 when selecting <Open anyway>, I would also think that this is a problem of Lr.
    When you select <Render using Lightroom> Lr creates the PSD (or TIFF) and sends it to CS5.
    So it seems that this part of Lr that is creating a PSD (or TIFF) from your Raw image is missing / broken.
    Most probably something got left behind when you used the Migration Assistant.
    I would suggest this: Download from Adobe's website the trial version of Lr 4.3. The trial version is a full version with all features enabled, but it runs only for 30 days.
    Each time you open the trial version you get the option <I want to buy>. Select this option and enter your serial number. This will unlock the trial version for unlimited use.
    Maybe it would be good to un-install your current Lr before re-installing the downloaded file to ensure that you do a "clean" re-installation.

  • CS5 Photoshop I get the message: Some of the application components are missing from the Application directory, Please reinstall the application.

    When trying to open Photoshop CS5 I get the following Message: Some of the application components are missing from the Application directory, Please reinstall the application.
    Can I get these components downloaded as my optical drive is broken.

    Download CS5 products

  • Error message, "Some of the application components are missing from the Application directory."

    I received the following error message: "Some of the application components are missing from the Application directory. Please reinstall the application. So, I uninstalled (Photoshop CS5), reinstalled and got the message again! Please help! I have no idea what I'm doing wrong.

    Nobody can tell you anything without proper system info or other technical details.
    Mylenium

  • I had photoshop installed fine.  We had to replace our hard drive, but had a full backup and everything else is working except for elements.  This is the message I get -Some of the application components are missing from the Application directory, Please

    I had photoshop installed fine.  We had to replace our hard drive, but had a full backup and everything else is working except for elements.  This is the message I get -Some of the application components are missing from the Application directory, Please reinstall the application.  I have reinstalled, but am getting the same message.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    You can also try to repair the places database with this extension:
    *https://addons.mozilla.org/firefox/addon/places-maintenance/

  • Why the iphone4 during a call does not keep the 3G?

    why the iphone4 during a call does not keep the 3G?
    I meet a lot of 3G signal when a call signal disappears 3G! I read the manuals and anything I find the problem! I do so with other brands and other cell does not, the same goes when I receive a call!

    Oniplay wrote:
    I tried to restart, the problem still remains.
    Make sure you do a reset, not a restart. Press and hold both buttons, ignore the "slide to turn off" message and let go of the buttons after the Apple logo shows up on the screen.
    If you did that and it did not bring any change, try to set it up as new device, as explained in this article:
    How to back up your data and set up as a new device
    If it does not work the first time, try not to use the backup afterwards in a second attempt, in case it contains corrupt data.
    If still no luck, get it serviced:
    Apple - Support - Service Answer Center

Maybe you are looking for

  • Unable to create File System Repository manager

    Hello, I would like to create File System Repository manager to this path: I have mapped a certain Network drive " main-uni-fs1\pictures$" to the Portal Machine and under this machine it appears as drive "N:\", inside it there is a picture folder whi

  • Adobe Air - can some help? Installation may not be allowed by your administrator.

    Ok i have been at this for 2day. Does anyone know how to get this to work. I have a mac version 10.6.6. I installed Adobe air from the web site. Everything appeared to be ok until after saying it had complete and i pressed finished, this appeared, 'A

  • Will the iPhone 3G and/or 2.0 software give push email for all email?

    ..instead of just MobileMe? I'd really like consistent push email for my gmail and yahoo! email accounts similar to the blackberry. Will I be getting this? I don't have a mobileme account nor desire to pay $90 for it.

  • Date range converted to String format?

    Simple question: When I was an avid Crystal Reports 8.5 developer, I remember there was something that converted a Date Range to a string, which contained the character "[" for inclusive and "(" for exclusive and looked something like this: "(2/24/08

  • FCPX - 6K, SPFX, SOUND, OUTPUT,

    We are in pre-production on a new feature.  Instead of renting equipment; we are purchasing.  This includes setting up a fully equipped RED editing bay.  I have worked on FCP7.  But we're starting from scratch.  This means buying a copy of FCP7 via t