A question about lightweight component.

I read a definition about lightweight component of swing:
A lightweight component is one that "borrows" the screen resource of an ancestor (which means it has no native resource of its own -- so it's "lighter").
I don't understand what the specific resource a lightweight component borrows from its ancestor?

I don't understand what the specific resource a lightweight component borrows from its ancestor? Its not important that you do understand this to program using Swing.
If you have a programming problem where this is causing a problem then post a question.
There are several tutorials on this site as well as techinical articles. Search the site and do your own research if this if vital for you to know.

Similar Messages

  • Some questions about TLF component

    Hi,
    I'm using the TLF component (v. 0.207.0) in a Mac OSX and I've encountered with some things that I can't resolve.
    (First at all sorry about my english)
    - I'm trying embed some fonts with the component (Univers LT 55 Roman and Univers LT 65 Bold, for example). When the file is published, Univers LT 65 is correctly embedded but Univers LT 55 is not, even bought in the same package family font. With other fonts I have the same problem. In Mac the default font is very similar (even antialiasing is not working, its readable) but in Windows it shows an Time News Roman or similar. Actually I'm using the Helvetica Neue, is very similar to the Univers 65 and dont have this problem. Is this a problem from the font name? from the opentype font? or the embedding thing or something?
    - The font type it is showing in the stage is the default one? Can flash (or the component, I don't know) render the embedded font? I really would like see my paragraph real size.
    - Now or in the future the component could link the containers and flow text in? (maybe can now and I dont now!)
    - When write a looong text in the component panel and the component is placing in the stage and it is very long too, I can't do scroll the text in the panel. When the stage component is very short there not problem, selecting the text I can scroll down.
    - Can I change the text layout component background color? If my text is white I can't see it.
    - If I have a text in japanese can I embed only this characters? I can use a range with
    [Embed(systemFont="--", fontName="--", mimeType="application/x-font", unicodeRange="U+0041-U+005A")]
    or include in the unicodeRange every character. There are another way?
    I really apreciate your effort building this library, until now Flash always was weak with the text thing, specially with languages as japanese.
    I was in the speech who Nat McCully did about the TLF in F-site in Tokyo and I relly excited about the TLF.
    From now I would like to try more the script than the component, maybe there some more questions coming...
    Thanks in advance.

    Try adding the images to the container dynamically
    var img : Image = new Image();
    img.load("{appURL}+{data.picname}")
    img.addEventListener(Event.COMPLETE,imageLoaded);
    private function imageLoaded(event:Event):void
                  var img : Image = event.currentTarget as Image;
                   // now add the img to the container
    cheers
    Varun Rathore
    http://www.vrathore.blogspot.com

  • Some question about image component

    Hi,
    I encounter two questions when using image component and can't solve it myself after reading online document.
    1. How can I get image source at runtime? I find image.source return an Object class, but not the source image path.
    2. How to ensure image loading image correctly? In my itemRenderer, I set image source with this
    source="{appURL}+{data.picname}"
    I am sure there's no problem with the path, but it shows a broken image. What's the right way?
    Thanks,

    Try adding the images to the container dynamically
    var img : Image = new Image();
    img.load("{appURL}+{data.picname}")
    img.addEventListener(Event.COMPLETE,imageLoaded);
    private function imageLoaded(event:Event):void
                  var img : Image = event.currentTarget as Image;
                   // now add the img to the container
    cheers
    Varun Rathore
    http://www.vrathore.blogspot.com

  • Questions about Selectors Component

    Any idea which selectors component would allow users to select multiple items?  I tried the Filter and/or Combo box, they only allow user to select one item from the drop-down list.
    Thanks.

    Hi Blossom,
    If you are trying to fetch the data in the dashboard using Query browser option, The useful component would be Query Prompt selector.
    Apart from that for a static dashboard or other dynamic connections you could use Check box, List builder or Accordion menu as per your requirement.
    Let me know if this information is helpful.
    Regards,
    Noopur

  • Image enduser workstation: question about ACF and Adobe Reader component

    Our IT department is investigating what components should be included in the image for enduser workstations to ensure they will be able to work with interactive forms without any problem. I know ACF and Adobe Reader are the only requirements for endusers but I have some questions about this:
    1. As of what version of Netweaver 2004s is it no longer a requirement to have the ACF component installed on the frontend to enable online interactive scenario's for endusers?
    2. Can I recommend to allways install the very latest Adobe Reader version available in the market or is the Adobe Reader version depending on the SAP NetWeaver version we use?
    kind regards
    Angelique Heutinck
    ([email protected])

    Hi Angelique,
    The non ACF version is called Zero Client Installation (ZCI)
    ERP2005 SP 5 - Zero Client Installation (ZCI)
    NW04S Stack 08
    Reader 8.0 for ZCI, Reader 7.08 for ACF based forms. Don't use Reader 8 for ACF yet, since there is no installer working yet...
    Cheers,
    Noë

  • Question about Kurts comments discussing the seperation of AIA & CDP - Test Lab Guide: Deploying an AD CS Two-Tier PKI Hierarchy - Kurt L Hudson MSFT

    Question about the sentence in bold. What is the meaning behind this comment?
    How would you separate the role of the AIA and CDP from a CA subordinate server? I can see where I add a CES and CEP server which has those as well, but I don't completely understand his comment. Because in this second step, (http://technet.microsoft.com/en-us/library/tlg-key-based-renewal.aspx)
    he shows how to implement CES and CEP.
    This is from the guide located at: http://technet.microsoft.com/library/hh831348.aspx
    Step 3: Configure APP1 to distribute certificates and CRLs
    In the extensions of the root CA, it was stated that the CRL from the root CA would be available via http://www.contoso.com/pki. Currently, there is not a PKI virtual directory on APP1, so one must be created.
    In a production environment, you would typically separate the issuing CA role from the role of hosting the AIA and CDP.
    However, this lab combines both in order to reduce the number of resources needed to complete the lab.
    Thanks,
    James

    My concern is, they have a 2-3k base of xp systems, over this year they are migrating them to Windows 7. During this time they will also be upgrading hardware for the existing windows 7 machines. The turnover of certificates are going to be high, which
    from what I've read here, it worries me.
    http://blogs.technet.com/b/askds/archive/2009/06/24/implementing-an-ocsp-responder-part-i-introducing-ocsp.aspx
    The application then can go to those locations to download the CRL. There are, however, some potential issues with this scenario. CRLs over time can get rather large
    depending on the number of certificates issued and revoked. If CRLs grow to a large size, and many clients have to download CRLs, this can have a negative impact on network performance. More importantly, by
    default Windows clients will timeout after 15 seconds while trying to download a CRL. Additionally,
    CRLs have information about every currently valid certificate that has been revoked, which is an excessive amount of data given the fact that an application may only need the revocation status for a few certificates. So,
    aside from downloading the CRL, the application or the OS has to parse the CRL and find a match for the serial number of the certificate that has been revoked.
    With the above limitations, which mostly revolve around scalability, it is clear that there are some drawbacks to using CRLs. Hence, the introduction of Online Certificate
    Status Protocol (OCSP). OCSP reduces the overhead associated with CRLs. There are server/client components to OCSP: The OCSP responder, which is the server component, and the OCSP Client. The OCSP Responder accepts status
    requests from OCSP Clients. When the OCSP Responder receives the request from the client it then needs to determine the status of the certificate using the serial number presented by the client. First the OCSP Responder determines if it has any cached responses
    for the same request. If it does, it can then send that response to the client. If there is no cached response, the OCSP Responder then checks to see if it has the CRL issued by the CA cached locally on the OCSP. If it does, it can check the revocation status
    locally, and send a response to the client stating whether the certificate is valid or revoked. The response is signed by the OCSP Signing Certificate that is selected during installation. If the OCSP does not have the CRL cached locally, the OCSP Responder
    can retrieve the CRL from the CDP locations listed in the certificate. The OCSP Responder then can parse the CRL to determine the revocation status, and send the appropriate response to the client.

  • Question about Customizable Components in JDev 10.1.3.2 version

    Hi,
    I have some some questions about new ADF features.
    1) As we see at the image: http://www.sttb.pl/jakub/customComp.JPG custom component doesn't display polish letters. How to resolve it ?
    2) In command components (button or link) there is enable new value for Action attribute: frame.addContent - what is that and how to use it ?
    3) How to use <cust:showDetailFrame> facets ?
    Regards
    Kuba

    I can help you with 3)
    o Adding Customization to a JSF Application - demonstration
    o WebCenter Tutorial
    o WebCenter Developer's Guide
    Peter

  • Question about inputting data to a pivot table

    Hi,
    I have 2 questions about using the ADF pivot table component (I would like it for data input).
    1. Is it possible to paste into multiple cells (i.e. using cut in Excel for example, and then pasting the cells into the pivot table) ?
    2. What is the recommended approach for the case where there is no data values (no rows on the database table)? For example, if I have regions, products, measures and time periods and then want to be able to select some regions and some products to enter new sales figures - and then create the rows on the database with save button, is there a recommended way to do this?
    (Jdeveloper version: 11.1.2.0.0)

    Anybody able to help with this?

  • General Questions about BI

    Hello,
    I want to get into SAP BI and have some questions about it.
    Is there a big downside in installing only the BI components without the Java BI components, or is it even possible if you want to work with BI. What are the general differences between BI and Java BI?
    I think the main aspects i will work with will be data warehousing and some basic reporting.
    The reason why i'm asking is that i want to run the BI components in the same system as the ECC Server (its just a test system). I read that the Java BI component needs EPC and EP and that would probably be too much for a single system (6 GB RAM).
    Thanks a lot in advance,
    Martin

    Thanks for your hints, they were really helpful.
    As i mentioned i mainly want to work with the general Data Warehouse and Reporting capabilities, so i think it should be okay.
    Actually i'm planing to write about BI and SAP within my master thesis.
    Another question, what will be with SAP BI in the future regarding the Business Object acquisition? Is there still any point in learning SAP BI or will SAP BI disapear in the future? I heard that the basic BI functionality (e.g. Datawarehouse ) will still be used but the reporting capabilities  would be disappear. I'm not sure if that is right and i'm really new to this topic. So any comments are welcome.
    Thanks,
    Martin

  • Questions about Trex migration

    Hello experts,
    I have some questions about Trex migration.
    We have to migrate our Trex instances to another Hardware type (and operating system type).
    Is it somehow possible to export the Trex database (indexes etc.) on the source Trex, and then import them on the new target Trex? I ask because i found another thread in here saying that this is only possible if the source and target OS is the same, and if the source and target Trex is the same version, I donu2019t know if this is true though?
    Or is it easier to just install a new Trex, and then let it rebuild index etc.? And is this a feasible way to do it?
    As you can see i don't know much about Trex, so any hints and good advice is appreciated.
    Thanks in advance.
    Regards,
    Kenneth

    Hi Kenneth,
    there are different approachs for migartion TREX.
    a) Install TREX on a new machine. And export the indexes and afterwards import the indexes. This is possible even you do not have the same TREX version. Because otherwise if you only want to upgrade your revision you just start the sapinst or install.sh at the same machine.
    b) Intstall TREX on a new machine and re-index all.
    But keep in mind TREX is not BIA. Even perhapts this is the same SAP software  component.
    So re-index could take about days.... not only 10 min. This depends on the type of objekts which should be indexed and of the volumne.
    As well it is not recommanded in general to switch on delta. For BIA of cause but not in generel for TREX.
    Best regards
    Frank

  • Some question about fade in // fade out by hideEffect and showEffect in Actionscript

    Some question about fade in // fade out by hideEffect and
    showEffect in Actionscript
    Please kindly take a look at the following page:
    http://camusmiu.no-ip.com/HounganQuestion/PictureHolderTest.html
    (can view source)
    I tried to make an image preloaded and scale the image to
    it's preferred size.
    When I came to consolidate the stuff into a component, I
    found the application goes weird as I implementation the show/hide
    effect.
    The third trial which just hide and show the images directly,
    instead of using viewstack, fail to bring the second image onto
    screen.
    It just used fadeOut instead of fadeIn(you see there is a
    flash of the second image)
    After some study of showEffect and hideEffect behaviour,
    seems the mechanism of hide/show a component works in this way:
    this._fadeIn:Fade = new Fade();
    this._fadeIn.alphaFrom = 0;
    this._fadeIn.alphaTo = 1;
    this._fadeIn.duration = 1000;
    this._fadeOut:Fade = new Fade();
    this._fadeOut.alphaFrom = 1;
    this._fadeOut.alphaTo = 0;
    this._fadeOut.duration = 1000;
    Component_A.visible = true;
    Component_A.setStyle("showEffect", this._fadeIn);
    Component_A.setStyle("hideEffect", this._fadeOut);
    then when I set Component_A.visible = false, the sequence
    works like following:
    Component_A.visible = true
    Component_A.visible = true, alpha = 100;
    Component_A.visible = true, alpha = 50;
    Component_A.visible = true, alpha = 0;
    Component_A.visible = false;
    The above sequence works visa versa as:
    Component_A.visible = false;
    Component_A.visible = true, alpha = 0;
    Component_A.visible = true, alpha = 50;
    Component_A.visible = true, alpha = 100;
    Component_A.visible = true;
    (Correct me if i am wrong)
    ========================================================================================== ====
    From what I observe from the application, I have two
    question.
    1) When more than one component using the this._fadeIn,
    this_fadeOut as the hide/show effects, the component in instance of
    this._fadeIn? will it mess out if more than one component using the
    fadeIn instance in the same time?
    2) from the third component, i.e. PictureHolder3, when I load
    other the picture , it fade out the new image instead of fading
    in... Seems there is problem if I hide show too frequent. I think
    when I hide then show right the way, the component only do the hide
    part...
    Can someone pls look into it and tell me what I did wrong?
    Cuz in normal practice I don't think appropriate to use ViewStack
    in Actionscript...

    Hello Jack,
    Currently, you can only import an swf file or you can embed videos from youtube, vimeo etc. into Muse / add HTML5 Video to Your Website.
    Take a look at these simple videos that explain the currently available processes for adding videos in Muse, in a step by step method:
    1. http://tv.adobe.com/watch/learn-adobe-muse-cc/inserting-a-youtube-flic kr-or-hulu-video/
    2. http://www.youtube.com/watch?v=5in4swnIFsw
    3. http://www.youtube.com/watch?v=KnBFLQheOk4
    Hope this helps.
    Cheers
    Parikshit

  • Questions regarding Dialog component.

    JDeveloper 11g + ADF BC + ADF RC
    I have two questions about the af:Dialog component.
    First, I notice there is a property called 'AffirmativeTextAndAccessKey'. Is there any way to set that to a double-click event?
    Second, is there any way to stretch a component like a table to fill up all of the white space availabe in a Dialog component? Maybe there is some layout component I can use to accomplish this?
    Greatly appreciated.

    Hi,
    Q1: No
    Q2: have a look at the Web Developer Guide for components that stretch their children and those that are stretchable
    http://download.oracle.com/docs/cd/E12839_01/index.htm
    Frank

  • Event dispatching in lightweight component

    Hi all
    I'm trying to figure out how the event dispatch works for the Swing's lightweight component, and there's something I can't find in the tutorials I found.
    Lightweight components doesn't have a peer, so they don't receive directly paint events, but it's their containers that call it inside their paint() method (and that's why one should always write super.paint() if wants to override the container's paint() ).
    But what about the other events? I suppose they are received by the container (just as paint events) but I can't understand how that container dispatches them to the right lightweight container...
    Thank you

    This is what I know about the painting in light weight component in Java.
    Lets us concentrate on the button only.
    Whenever we press the button we change it s state from 'normal' to 'pressed'. ( Some boolean might be used in the actual code ).
    Like wise whenever we do some user inputs to the button ( or any other lightweight component ) it results in the change in the state of the button.
    These basic actions are handled by BasicButtonListener.
    Now whenever the state of a component is changed it triggers a ChangeEvent associated with that perticular state change.
    The implementation of the button is such that it calls the repaint method itself whenever any state of the button changes.
    So it is the component itselt who calls its paint method and not its outermost container as you think.
    The container of any component can result in repainting of its child component only when it revalidates itself.

  • CFC's - Question about coding guidelines

    I have a question about the following section in the
    CF
    Coding guidelines
    quote:
    {cfmxroot}
    ---wwwroot/ » web-accessible .cfm pages and .cfc Web
    Services
    ---extensions/
    --------components/ » tree for .cfc files
    --------customtags/ » tree for .cfm custom tags
    --------includes/ » tree for include files
    ---config/ » tree for configuration files
    This implies that we have two Custom Tag Paths set up in the
    CFMX Administrator:
    {cfmxroot}/extensions/components/
    {cfmxroot}/extensions/customtags/
    We also have mappings for the root of the includes tree (for
    cfinclude) and the custom tags tree (for cfimport):
    /cfinclude » {cfmxroot}/extensions/includes/
    /customtags » {cfmxroot}/extensions/customtags/
    1. Why would you want to add both a custom tag path
    AND a mapping for " {cfmxroot}/extensions/customtags/"?
    2. The guidelines seems to imply you should use a custom tag
    path for components, instead of a mapping. If the "components"
    directory is already outside the webroot, then adding a CF mapping
    shouldn't make it web accessible, right? So is there any benefit to
    using a custom tag path versus a mapping?

    It is up to you where you put your components and where you
    put your custom tags. The standard way, as I know it, at least, is
    to create a mapping for your cfc directory on the
    Mappings page of the Coldfusion Administrator and to
    register the path to your custom tag directory on the
    Extensions/Custom Tag Paths page. In answer to your first
    question, you will also need to create a mapping for a custom tag
    directory if you intend to call tags using the template-attribute
    of cfmodule.
    Coldfusion considers the directory-path that you register on
    the
    Extensions/Custom Tag Paths page an absolute path. That is
    what enables you to call a tag directly by name on any page of your
    application, for example,
    <cf_myCustomTag>.
    One consequence is, if you stored a component myComp.cfc in
    such a directory, you could instantiate it on any page simply by
    running
    <cfset myObj = createobject("component","myComp")>
    However, this doesn't offer anything a mapping wouldn't. So,
    in answer to the second question, I don't think one should use a
    custom tag path for components. Mixing one's custom tags with one's
    components only produces an oil-plus-water structure.

  • Questions about application server architecture

    Hello guys,
    I have few questions about application server architecture�
    I have a task to build a server application which will do the following: Clients (special java clients) will connect to it and send some data for further processing on server side. Chunks of data will be relatively small but they will take a lot of time for processing (it is ok that it will be quite slow).
    Also server will run some sort of �database� where all clients� working data will be stored. So, in case a client loses its data he/she is always able to download it from the server.
    For me it seems, like server will consist of the following components:
    1. �Reception�. This part will be responsible for all client-communication procedures.
    2. �Data storage�. This part will simply store all clients� data and provide some API interface for clients through �reception� to manage it (add/get/delete and so on).
    3. �Processor�. Some sort of dummy-sophisticated module. It will take some input data from �data storage� when it receives order for this and process it. �Processor� will have two states: �busy� which means �processor� processing some data and �available� which means �processor� ready to process new data.
    4. �Manager�. This part will always check �data storage� for new data and �processor� for availability. When �processor� and new data are available �manager� will make an order for �processor� to take new data from �data storage� and process it.
    So, my question is the following: Which technology and approaches I should use to realize my plan?
    I think that I can make �reception� as a Session Bean, but I don�t know yet, what are the best for the rest, for example �manager� and �processor�. I was thinking about writing my own application server (and I can do it), but I would like to learn j2ee technologies, so I think it is a perfect chance for me (I read a lot about j2ee before I wrote this post, but all examples have only �account�-�bill�-�money transfer� I think it is quite far away from reality or I am doing something wrong ;-)!
    p.s. I am thinking about using JBoss as an Application Server. I tested it and wrote some tests. They work and run fast enough, so I like it. Moreover it has module architecture.
    Please, give me some advises and tips!
    Thank you in advance!

    1. �Reception�. This part will be responsible for all
    client-communication procedures.Session bean with remote interface.
    2. �Data storage�. This part will simply store all
    clients� data and provide some API interface for
    clients through �reception� to manage it
    (add/get/delete and so on).Session bean that will use entity beans or hibernate to work with persistant data.
    3. �Processor�. Some sort of dummy-sophisticated
    module.Use a message driven bean. Make Reception to enqueue a message when new data is available for processing. Processor will process the data and store the resut in database using Data Storage session bean.
    4. �Manager�. This part will always check �data
    storage� for new data and �processor� for
    availability. When �processor� and new data are
    available �manager� will make an order for
    �processor� to take new data from �data storage� and
    process it.It's redundand component, because application server will manage messages and processors.

Maybe you are looking for