Changing labels in jtree

i have tree with two kinds of nodes. groups and items. when user clicks on group all items and sub-groups are loaded from database via network in treeWillExpand method. this may take few seconds. when data is loadanig i would like to change label on group for example to "data is loading...". and after data is loaded and node expanded i would like to go back to previous label on group. any idesas ?

Start a separate to execute the database query, so you don't lock the GUI from repainting. Then Change the data in the node. When Database query finishes upate the node and make sure to use the SwingUtilities.invokeLater(...) method.
Read this section from the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html]How to Use Threads for more information
Or you can always use a JProgressBar for this purpose. The tutorial also has an example of this.

Similar Messages

  • I have two graphics workers on osx 8.  They are both complaining that their files are changing label colors on it own.  Any idea what could cause this?

    I have two graphics workers on osx 8.  They are both complaining that their files are changing label colors on it own.  Any idea what could cause this?

    and there were and have been problems with any two nvidia cards which was the main part of my question.
    To provie details try pasting all but serial number from system profile. Sorry but Mac Pro tells me nothing, not model, year, or what graphic card it came with or updated with.

  • Changing labels in /sapapo/sdp94.

    Hi,
      Changing labels in /sapapo/sdp94.
       I want to change the labels in /sapapo/sdp94 for the same i found an exit EXIT_/SAPAPO/SAPLMCP2_006 (APODM006).
       Problem is the control is not reaching the EXIT; i set up a breakpoint over there but still it doesn't reach there.
    Thanks
    AP

    Hello, make sure you activated the user-exits properly. Then you set a BP at FM /SAPAPO/MC_PERDY_GET in SE37 in below coding:
    * User-Exit?
      if i_perly eq 'U'.
    *   Evtl. wurde keine PERID mitgegeben:
        if i_perid is initial.
          call function '/SAPAPO/MC_PERIODE_ZUM_DATUM'
                   exporting
                      idate   = i_vontg
                      iperkz  = i_perkz
                      iperiv  = i_periv
                   importing
                      eperid  = i_perid.
        endif.
        call customer-function '006'
             exporting
                  i_vontg = i_vontg
                  i_bistg = i_bistg
                  i_perkz = i_perkz
                  i_periv = i_periv
                  i_perid = i_perid
             importing
                  e_perdy = e_perdy.
    If the user-exit is applied OK, it will jump into your customizing coding at statement [call customer-function '006']

  • Change Labels in Legend

    Hi!
    How to change labels in graph legend with presentation XML file? I have created the JSP-based report on such query:
    select ex_sub_name,
    sum(cnt),
    sum(gos)
    from ....
    and have inserted bar graph into this report.
    For every ex_sub_name I have two bar with values from
    sum(cnt) and sum(gos).
    My problem is that labels
    in a graph legend are drawn as sum_cnt and sum_gos.
    But I can not use aliases in SQL-query for some reasons...

    The graph displays the labels based on the data that it is passed. As part of your query you should specify a column with more meaningful labels. This sounds like a metadata issue if you are using OLAP data.

  • Problem with changing Label in Bridge CS3 and CS6

    Hi there,
    I am having some problem with changing Label in Bridge CS3 and CS6 in windows.
    1. In Bridge CS3 (Windows XP), most of the time with most of the files, there is no problem. But I found that in some files, the Label does not get changed. I usually change Label by right clicking on the picture, then Label and select any Label. When I do so in those files, nothing happens. But when I rename the file by changing or adding just a single character, then it works. And if I again rename to original name, it still works. But without renaming the Label does not change. Again this does not happen with all pictures, but occationally with some. We usually receive pictures from different clients for editing purpose.
    2. In Bridge CS6 (Windows 7), if you create lot of Path using Pen tool in Photoshop for the purpose of removing background, you save the file, close, and change Label in Bridge, again open the file in Photoshop, you see no Path in the Path Pallette. So that means, changing Label works, but it removes the Path from the file. But if there is small amount of path, then no prboblem. But if there is lot of path, like you need to create for a necklace to remove background, then the problem arises.
    I am using Bridge for a purpose where it is very helpful so I really need to use Bridge, and Labeling feature is the most important to me, but after feaguring out this problem, I am really tensed as to whether or not I will find a solution to this. So any help, guidance will really be appreciated.
    Thanks very much in advance for any solution.
    Best regards

    I have re-checked the issue and I found that the problem is with JPG file.
    I wasn't even aware you could save a path to a jpeg file (always use PSD because of wanting to keep the Alpha Channel, jpeg only can contain 1 layer and no alpha channels and/or transparency).
    However I tried it on a file with a simple path and one with a complex path. It seems indeed you have found a bug. The simple path is no problem but the more complex path is indeed disappearing.
    It is not only label but also rate or adding IPTC in the description field. The moment metadata is saved to this jpeg file and reopened the earlier present work path of a more complex path is gone.
    Despite the fact that to my opinion a jpeg is not the most suitable file format for saving a work path this should not happen. If a work path is saved to a jpeg then it should be kept saved after just altering metadata in Bridge.
    It still is the same behavior in Bridge CC because that is what I use. Don't know when it started but it still needs to be repaired
    Here is the link for filing a problem or bug:
    http://feedback.photoshop.com/photoshop_family/

  • Change labels to parameter

    HI Gurus
    Please can help me, I want changing labels to parameters and select-options in SELECTION-SCREEN.
    I go to menu Goto -> text elements -> selection text but I don't insert lines in selecition text.
    Regards
    William Neira

    I meant - did you activate the text elements?
    Rob

  • Change Labels on Summary Columns

    Could anyone advice me how to change labels on the summary columns on a cross tab report?
    Current it shows for e.g. count(orders).
    I would like to change it to "Order Count"
    Also how can i change the value format on a drill down report?

    Hi,
    Thanks a lot for your answers.
    First, on umResetPasswordPage.jsp I have found the code where "LAST_NAME" must take a value from other file (Could be from umelogonbase.jar?) so, maybe it is not the right place to change it, isn't it? or did you suggest by other way?? This is the code on the umResetPasswordPage.jsp file:
    <td width="161" height="20">
            <label class=urLblStd for="logonlastnamefield">
              <%=logonLocale.get("LAST_NAME")%>
              <span class=urLblReq> *</span>
            </label>
          </td>
    Second, On Portal Content there is not any Page/Iview wich manage this Support (LogonHelpApp) page openned by "get Support" link on Welcome Portal Page. At this time, I could not find if is it a webdynpro or other component Portal....

  • How to change labels in maintenance view

    Hi,
    i have created a maintenance view on a table.
    i attached this view to a transaction.
    when i run that transaction the table is appearing for display of values
    and new entries. but i want to change labels of the appearing view.
    is there any way?
    please suggest me.
    raju

    Hi,
    to handle GuiXT central in SAP: use transaction SHD0. There is also an online help for further information.
    in SHD0 transaction variants are defined: alternative tcodes, where normally fields are hidden and default values are assigned.
    Enter standard tcode in field TCODE, enter z-tcode in field TCVARIANT and create just something for playing...
    In upper part you will find flag GiuXT-Script and in upper part is 'i'-button for help in using this transaction (this blue-i-help-button is also in starting screen, docu is implemented like SPRO-docu).
    Approach with SHD0 ensures transportation of scripts and automated download to local Guis - so some help to handle bigger installations.
    Regards,
    Omkar.

  • Problem in changing label in leave request approval screen

    Hi All,
    I have followed the SAP note 1234273 to change labels in our Leave request iViewin ESS and could do it successfullybut I could not able to know how to change the labels in Leave request approval screen because I have created a custom role and assigned Universal work list to it and assigned it to manager to view the leave requests applied. I navigated to Leave request approval screen via that role but ctrl + right click is not working on that page. Please suggest me

    Check your uwl config, normally it is configured to directly call concerned(leave req approval) application hence your iview may not be getting called. You can try changing the uwl config to call PCD page instead of direct wdp application call.
    ~cheers
    avadh

  • Can't Change Labels for Properties

    I Can't Change Labels for predefine Properties
    or Custom Properties.
    I had done it with this:
    http://help.sap.com/saphelp_erp2004/helpdata/en/65/6fc63ed4027f6be10000000a114084/frameset.htm
    I just followed what the help said.
    but i can't see any change for my label of Properties.
    I had done it as follow steps.Please help me to
    Check if i miss some steps!
    1,I creat .properties files
      mylabels.properties
       in this properties file  i creat a key
           modified=date
      mylabels_zh_CN.properties
        in this properties file  i creat a key
           modified=u66F4u65B0u65E5u671F
    2,I made a jar file use the two .properties files
      named mybunding.jar
    3,I copy this jar file to
    .../j2ee/cluster/server<n>/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/com.sap.km.common.resourcebundle/lib
    4, Create a new metadata extension under Content Management -> Global Services -> Property Metadata -> Metadata Extensions.
      named it  my_metadatae_extension
       set  Bundle File=com.sap.km.common.resourcebundle.mybunding.mylabels
    5,restart the servlet engine,
    6 in the key for label of the properties
        i set modified the key i creat in step 1.
    when i display the properties it still didn,t display
    my created lable.
    How should i do? any step i miss? or any better solution
    for the lable?
    Please help me ,
    BestRegards
    Han

    Hi Han,
    here my corrections:
    1.
    I would use the filename "mylabels_cn.properties" and not "mylabels_zh_CN.properties"
    2.&3.
    This is the SP2 way for using the bundle files for properties. For NetWeaver you need to create a new PAR-file with the bundle file including the labels and translations as described <a href="http://help.sap.com/saphelp_nw04/helpdata/en/65/6fc63ed4027f6be10000000a114084/frameset.htm">here</a>.
    It's very easy if you use the example PAR file provided by SAP in SAP Note 817876, as mentioned in the referenced link (Prerequisites section).
    Read carefully the process in the link and try again. If you still experience problems, come back with the new detailed description.
    Hope this helps,
    Robert

  • Change Label in Overview

    Hey Guys
    I have a problem which I hope is peanuts for you.
    I have a xml overview and I want to change its label dynamicly.
    I tried to put an function instead of the string at the initialization, put that did'nt worked, so I need to chage it at runtime.
    My code looks like this:
    <?xml version="1.0" encoding="utf-8"?>
    <vc:ManagedOverview label="Preferences" allowCallsFrom="[ch.test]"
      xmlns:mx="http://www.adobe.com/2006/mxml" type="{Preferable}" types="{[Preferable,Product,Component,Containable,ComponentCategory, ProductCategory]}"
      xmlns:vc="ch.marsdencatering.foodcomposer.viewcontrol.*" searchIndex="4"
      xmlns:cp="ch.marsdencatering.foodcomposer.view.component.*">
      <mx:Script>
      <![CDATA[
      override public function onViewControlModelChanged(caller:IManagedView):void {
            if (caller is test) {
                 searchIndex =caller.currView;
                //Likes
                 if(searchIndex == 0){
                        //Change label here to "Likes"           
                //Dislikes
                }else if(searchIndex == 1){
                        //Change label here to "Dislikes"
      ]]>
      </mx:Script>
    </vc:ManagedOverview>
    Is that possible or should I try it on an other way?
    thanks for your help!!!
    Jochen89

    Your comment wasn't exactly what I was looking for, but it gave me the right hint. :-)
    I have to put a function directly to the initiation part of the overview AND end it with a semikolon.
    <?xml version="1.0" encoding="utf-8"?>
    <vc:ManagedOverview label="{create_label();}" allowCallsFrom="[ch.test]"  
    xmlns:mx="http://www.adobe.com/2006/mxml" type="{Preferable}" types="{[Preferable,Product,Component,Containable,ComponentCategory, ProductCategory]}"  
    xmlns:vc="ch.marsdencatering.foodcomposer.viewcontrol.*" searchIndex="4"  
    xmlns:cp="ch.marsdencatering.foodcomposer.view.component.*">  
    <mx:Script>  
    <![CDATA[
    public function test():String {
          return "Likes";

  • Auto Advance bug with changing labels in grid

    If Auto Advance is checked in the menu {Photos}{Auto Advance} and the user is in the grid view viewing images with colored labels. Changing the label on one selected image using the tool bar label icons causes the selected image to be unlabeled. The next image to receive the colored label and auto advances to the third image. 
    FWIW, this bug is also in V3.

    An update, it seems that I can change labels on measures, but not on calculated measures

  • [svn:fx-trunk] 10216: Change Label verticalAlign to use "top" if there is too much text.

    Revision: 10216
    Author:   [email protected]
    Date:     2009-09-13 08:20:06 -0700 (Sun, 13 Sep 2009)
    Log Message:
    Change Label verticalAlign to use "top" if there is too much text.  RichText already works this way.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-20589
    Reviewer: Gordon
    API Change: No
    Is noteworthy for integration: No
    tests: checkintests mustella/GraphicsTags
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-20589
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • [svn:fx-trunk] 10144: Change Label verticalAlign to use "top" if there is too much text.

    Revision: 10144
    Author:   [email protected]
    Date:     2009-09-10 18:46:11 -0700 (Thu, 10 Sep 2009)
    Log Message:
    Change Label verticalAlign to use "top" if there is too much text.  RichText already works this way.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-20589
    Reviewer: Gordon
    API Change: No
    Is noteworthy for integration: No
    tests: checkintests
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-20589
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • How to change label in charts in CRM 2013

    I want to change x-axis and y-axis label in chart. Please guide me how to change label in chart.

    http://mscrmninja.tumblr.com/post/15553130574/changing-chart-axis-titles-in-crm-2011
    My blog: www.crmanswers.net -
    Rockstar 365 Profile

Maybe you are looking for

  • Unable to Install SQL Server 2008 R2 64 Bit on clean install of Server 2008 R2 64 Bit Error CLR20r3

    Hi, I'm trying to install SQL Server 2008 R2 64  on a clean install of Server 2008 R2 64 Bit. Shortly after double clicking on the setup I get a Windows error message saying the installer has stopped working with the details below. Suggestions welcom

  • VAT Registration Number & VAT code & VAT rate

    Hello Gurus, I am trying to find out, 1) How can I retrieve (either via a table lookup or function module) a list of VAT codes & VAT rates by        Legal Entity and Country? 2) How can I retrieve (either via a table lookup or function module) the VA

  • Microsoft Integration Outlook Add-on, client installation

    Hello experts, I installed SAP Business One on client based on AdmnistratorGuide pdf, however didn't complete section 3.2.2.4_Installation the Microsoft Outlook Integration Add-On (page 44). Actually no autorun pop-up appeared for that during install

  • E90 could not be updated. Phone has the latest sof...

    My nokia e90 ra-6 7.40.1.2 ( 0533332 ) could not be updated through nsu, because nsu says that my phone has the latest software, while it hasnt! Whats wrong with my phone?

  • Deletion of data using RECORDMODE

    Dear Experts, I have a scenario where I have to delete data from a DSO based on some conditions. I have defined the condition in my end routine and set RECORDMODE as 'D'. However, during activation of DSO, the records are not deleted. In my new table