JLabel cannot be set visible at runtime

I am using a button to open a JFileChooser and when a user selects a txt file all the data are read from it and shown into a text area. When this process is happenning I want to show a gif image showing the progress.The image is set into a label. The label is just made visible true. But when I try to do that the label is not shown. The code is below:
function to open the JFileChooser
fPath = odb.OpenDialogBox("d");after selecting the file the following code is written
if (returnValue == JFileChooser.APPROVE_OPTION) {
File selectedFile = fileChooser.getSelectedFile();
parent.setLoadingVisible();parent is the object of the class from where OpenDialogBox function is called
code in setLoadingVisible() as follows
//ImageIcon icon = new ImageIcon(this.getClass().getResource("icon/loading.gif"));
        //jLabelImg.setIcon(icon);
        jLabelImg.setVisible(true);
        //jLabelImg.setVisible(true);
        //jLabelImg.updateUI();
        //SwingUtilities.updateComponentTreeUI(this);but it is not happening........................

isocdev_mb wrote:
And perhaps have a look at the demo app for [progress bars|http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html].
++++
Yep

Similar Messages

  • Error in View configuration "Define an assignment set in the runtime rep.."

    I have enhanced a standard component u2018BP_HEADu2019 and have enhanced the view u2018BP_HEAD_OVERVIEWu2019 in it to work on the configuration. But when I go to the configuration tab it says, "Define an assignment set in the runtime repository" and I do not see any blocks on the left side of the configuration.
    Am I missing anything in the runtime repository?

    HI,
    You cannot modify the SAP default views. You have to define a role key at:
    IMG -> CRM -> UI Framework -> Define Role Configuration Key.
    Once you have defined the role configuration key you need to assign your role configuration key to your business role at:
    IMG -> CRM -> Business Roles -> Define Business Roles
    Select your business role and click on "Details" icon and you would need to assign your role key there.
    In the Web UI configuration you need to first copy the configuration and in the next step you would do the necessary modification. During copying of the configuration you would need to mention your Role Key.
    Regards,
    Deepak

  • Set visible=false in Label not removing its space in screen

    Hi All,
    I have three labels ony by one having width=100% for all.
    For some reason, now I want to make 2nd label invisible in
    the screen.
    So I set visible="false" for the 2nd label. Now I cannot the
    see the text displayed by the 2nd Label, but I can see the space
    occupied by the Label.
    I mean that, now i am getting the first label text, and have
    blank row which has the text earlier, but not now and thrid row
    with 3rd label text.
    Also I checked that, if I set the height of the 2nd Label to
    0 then also its not completely removing the 2nd row, only
    possibility I found was completely comment the code for the 2nd
    Label is the only way to hide the 2nd row :)
    Any help would be appreciated.

    Hi Sujit,
    Thanks for giving an useful tip which is new to me. But still
    I can see a little space between the first and 3rd label.
    Now this little space comes from the default space between
    the controls. After few trials I found that there is a property
    called "verticalGap" for the containter which holds these 3 labels.
    I set the value to 0(zero) for verticalGap. Now the issue resolved
    Thanks for a useful post

  • Cannot start or stop the runtime platform

    I have found that I cannot start or stop the runtime platform using the provided
    start_service.sql or stop_service.sql scripts. I can run the scripts without
    error, however the runtime platform does not start.
    The only way I can start/stop the platform is with the run_service_local.bat
    file that starts the rtp from the desktop via a java program.
    My question(s) are:
    1) Can anyone explain why I can't use the start and stop scripts?
    2) How can I configure the rtp to stay up once it has started?
    Any help is greatly appreciated....
    -D

    FYI ***
    The fix was in there were several ora init parms that were set incorrectly:
    aq_tm_processes value is 0 Should be >= 1
    job_queue_processes value is 0 Should be >= 10
    enqueue_resources value is 2392 Should be = 3000
    java_pool_size          value should be >= 20MB

  • Delivery completed" indicator cannot be set for item 00001

    Hi all,
    I have done a inter company stock transfer order , with respect to that Order I made  Outbound delivery and posted GR with respect to outbound delivery. I have done  MIRO for  PO  for all the Item ,
    Now  I  need to  return some  material  to supplying plant for  some reason,  I tried  to  make GR (MIGO)  against the same  outbound delivery with movement type 122. the document is posted  but  when I tried to  make complete  delivery indicator  it does not allow me to do so .
    it says me
    Delivery completed" indicator cannot be set for item 00001
       Message no. 06 848
    Diagnosis
       You have set the "delivery completed" indicator for a stock transfer  item.
    system Response
       You can only set the "delivery completed" indicator in stock transfer  items if
       o   the sum of the goods issue quantities in the supplying plant equal  the sum of the goods receipt    quantities in the receiving plant.
       o   the sum of the delivery note quantities is equal to the sum of the goods receipt quantities.
    Regards,
    Dhilipan.

    I dont think you need to set "delivery completed" indicatory while returning from one plant to another.
    For example : You ordered 100 qty. and you are receving only 80 Qty. and you don't expect any receipts anymore. in this case you want to close the open purchase order with delivery completed indicator.
    But while returning to vendor or to another plant you are not referring the P.O directly and hence you dont need "delivery completed indicator'

  • Delivery completed indicator for STO cannot be set!

    Dear colleagues,
    There are number of STO’s those goods issue quantity > quantity of goods received. Because of this delivery completed indicator cannot be set due to message “06 848 - Delivery completed indicator cannot be set for item XXXXX”.
    There is an OSS note (167795) that allows to set delivery completed indicator for such purchase orders. Even though our SAP release is 6.04, report RM06EV70 does not exist (yet BADI ME_ARCHIVE_ACTIVE is active) in the system and OSS note cannot be implemented.
    Any help would be appreciated.
    Regards,
    Melih
    PS. Please do not provide answers like “the goods receipt must be first posted via the entire goods issue quantity; then you can post a scrapping via the shortfall quantity” since there are backdated STO’s.

    Hi,
    Find STO created for which plant in t.code:ME23N and check MRP parameter maintained for that plant in t.code:OPPQ( also check entry of that plant in t.code: OMCD).
    Also cross check which Field Selection Key assigned to your STO PO document type and check “Delivery completed" indicator” available as Optional entry in GR/IR control segment in your Field Selection Key.
    SPRO - > MM - > Purchasing -> Define Screen Layout at Document Level
    Regards,
    Biju K

  • Maybe Flex SDK bug: Setting visible of DataGrid item renderers

    Hi all, I'm still a noob at flex but this looks a bit strange to me.
    I've been trying to hide a button renderer in a DataGrid but it just wouldn't hide.  I've been setting visible inside the mxml and also in the the class that extends buttonbut it just wouldn't hide.  I then overloaded the visible property set/get and traced what was setting the property to true and found that inside DataGridBase.as the function setupColumnItemRenderer always sets visible of the renderes to true.
    DataGridBase.as
    protected function setupColumnItemRenderer(c:DataGridColumn, contentHolder:ListBaseContentHolder,
                        rowNum:int, colNum:int, data:Object, uid:String):IListItemRenderer
            var listItems:Array = contentHolder.listItems;
            var item:IListItemRenderer;
            var rowData:DataGridListData;
            item = listItems[rowNum][colNum];
            if (!item || itemToUID(item.data) != uid
                || columnMap[item.name] != c)
                item = createColumnItemRenderer(c, false, data);
                if (item == null)
                    return null;
                if (item.parent != contentHolder)
                    contentHolder.addChild(DisplayObject(item));
                // a space is used if no data so text widgets get some default size
                columnMap[item.name] = c;
                if (listItems[rowNum][colNum])
                    addToFreeItemRenderers(listItems[rowNum][colNum]);
                listItems[rowNum][colNum] = item;
            //[Matt] moved from inside the block above to outside because
            //the item definitely exists at this point, and always needs
            //its data refreshed
            rowData = DataGridListData(makeListData(data, uid, rowNum, c.colNum, c));
            rowMap[item.name] = rowData;
            if (item is IDropInListItemRenderer)
                IDropInListItemRenderer(item).listData = data ? rowData : null;
            item.data = data;
            item.visible = true;
            if (uid && colNum == 0)
                contentHolder.visibleData[uid] = item;
            return item;
    Why does it do this?  Shouldn't it respect the visible property already set for the renderer in mxml and not force it to true on init?

    Renderers use the visible property for recycling.  Invisible renderers are not supported.  The hit detection logic would find it the cell it belongs to even if it was invisible.  You can set alpha=0, but it won't stop the hit detection logic.
    Why are you trying to hide a renderer?
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • CRM 5.2,  how to define an assignment set in the runtime depository?

    We are using CRM 5.2. I have created a new component and view and the view is exposed as an interface view. Now i have to include this in the overview page of BP_HEAD component. I have enhanced BP_HEAD component and enhanced the view required as well( View Name BPHeadOverview). I have added my new component as the used components in BP_HEAD.
    But when i open the enhanced view, i don't see any available assignment blocks. Standard overview page of BP_HEAD had some available assignment blocks but the enhanced one doesn't. Also following message is shown  "Define an assignment set in the runtime depository". How can i add my new component and interface view to the available assignment blocks of the overview page of BP_HEAD? Thanks for your help.
    Regards
    Hari

    Hi Sudipta,
    Thanks for your help. I am making good progress.
    I believe i am quite close to completion now. Need your help with following questions though -
    1) I have a context node BUILACTIVITY. Now i need to only display partial list from this context node? Is there a way i can do this directly with the context node or i have to create a new node and manipulate? If so any tips there?
    2) When i create new view it doesn't have graphical representation option any more? Is it that way only? If so can i just create table view and use it?
    3) When i create a form view and try to insert a table using <crmic:tableView> tag, i am getting an error messge saying "//BUILACTIVITY/Table" is not a table? What could be the issue?
    Thanks a lot for your help again.
    Regards
    Hari

  • Value attribute not visible in runtime collection

    Hi,
    I have created some 2-3 value attributes (display only) in a standard model node for BTDOCFLOW (which also contains some display only fields). Put in the logic in their Getter methods and fields are getting displayed in UI with the values.
    Now, my requirement is to display this table view (Assignment block) in default sorting based upon one value attribute and one model node attribute. But the problem here is, I am unable to find value node attribute at runtime in BTDOCFLOW collection at DO_PREPARE_OUTPUT. (Even display only standard context node attributes, which are not part of model node structure are not visible)
    I have re-defined method GET_TABLE_LINE_SAMPLE with the value attributes, resulting in enhanced rv_sample line, but still the value attribute is not visible at runtime in the collection.
    Can someone pl. tell me, how can I display my value attributes in collection along with model node attributes, so that I can do default sorting based upon one custom and one model node attribute.
    Thanks,

    Hi,
    Whne you define value attributes within the model attribute then the node becomes mixed instead of either value node or model node.
    So you need to access the mixed node and then should access model attributes and value attributes separately.
    Get your collection into a normal entity then assign the entity to mixed node
    DATA: lr_mixed TYPE REF TO cl_bsp_wd_mixed_node ,
                current TYPE REF TO if_bol_bo_property_access,
                 lr_current TYPE REF TO cl_crm_bol_entity.
         current ?= me->typed_context->entity name->collection_wrapper->get_current( ).
          lr_mixed ?= current..
          lr_current ?= lr_mixed->if_bsp_wd_ext_property_access~get_model_node( ).
    Best Regards,
    Dharmakasi.

  • ..Primavera\Project Management\PM.ini cannot be set to read-write status

    I have installed Primavera P6.1 in a laptop under Administrator Login.
    After that, when I log in to the laptop with my user Id, primavera fails to start and gives the following message:
    C:\Program Files\Primavera\Project Management\PM.ini cannot be set to read-write status.
    Kindly let me know how to fix this problem.
    Regards

    Please tell your IT Admin to fix as following:
    The following is a summary of the minimum system requirements Primavera 6.2.X requires for users to be able to access and run components of the
    software :
    Window Folders:
     C:\Windows\System32\
    dbexpsda30.dll
    dbexpint.dll
    dbexpoda30.dll
    DbExpPrC.dll
    dbexpsda.dll
    Read&Execute/Read permission for Borland DBExpress drivers
     C:\Program Files\Common Files\Borland Shared\DBExpress\DBXConnections.ini
    C:\Program Files\Common Files\Borland Shared\DBExpress\DBXDrivers.ini
    Read&Execute/Read/Write permissions to create and modify database alias connections
     C:\Program Files\Primavera
    Read&Execute\Read permission to access files needed to run applications
     C:\Program Files\Primavera\Project Management\pm.ini
    C:\Program Files\Primavera\Methodology Management\mm.ini
    Read&Execute/Read/Write permission to access the ini file - required to log into the applications
     C:\Program Files\Common Files\Primavera Common
    Read&Execute/Read permission to access files needed to run applications
     C:\Program Files\Common Files\Primavera Common\Java\BREBootstrap.xml
    Read&Execute/Read/Write permission to change connection parameters for Claim Digger or API
    (If user does not have WRITE access the Database Configuration Setup utility (C:\Program Files\Common Files\Primavera
    Common\Java\dbconfig.cmd) for claim digger / API DOES connect to the database and read the configurations and will create a new configuration if
    entered, but displays error "error writing to bootstrap file" and BREBootstrap.xml file will not be updated with the proper database connection information.
     Output directory for File > Export , Job Services output files and Log output files
    Read&Execute/Read/Write to create and write output files
    Registry Keys:
     HKEY_LOCAL_MACHINE\Software\Borland
    READ
     HKEY_LOCAL_MACHINE\Software\Primavera
    READ
    Note: For the functions Claimdigger, Update Baselines, and Schedule Comparisons the key is opened in Read/Write/Delete mode.
     HKEY_LOCAL_MACHINE\Software\Primavera\Databases\[MM/PM]\Aliases
    NOTE: By default, users have FULL CONTROL to their HKEY_CURRENT_USER\SOFTWARE registry keys
    If a user does not have FULL CONTROL permission to these keys, when they create a new alias it will be stored under
    HKEY_CURRENT_USER\Software\Primavera\Databases\[MM/PM]\Aliases and will be displayed and available to ONLY the user account on the
    workstation that created the alias.
    If user does have FULL CONTROL permission to to these keys, when they create a new alias it will be stored
    under HKEY_LOCAL_MACHINE\Software\Primavera\Databases\[MM/PM]\Aliases and will be displayed and available to ALL user accounts on the
    workstation.
    Jawad
    Novo Rail, Sydney
    P6 Project Controls Co-ordinator and Administrator

  • Restoring af:selectBooleanCheckbox value after setting visible=true

    Using JDev 11.1; I have a table that displays data from a model object, and one of the columns contains true/false values which we render in the table using an af:selectBooleanCheckbox. All works fine except that user is able to hide the table by expanding other components which sets visible=false on the bounding component for the table. If user elects to redisplay the table by reducing the other component zoom, then the table displays again but the selected check-marks/tags do not return.
    Thought initially it might've been because the query was being reissued on the table, but not so. More about the selected attribute on the af:selectBooleanCheckbox, which I have set to the default (false). So the value property is set to the table collection attribute as required to interface with the model, but I need to know what to set the selected attribute to. I can see that when the table is redisplayed, this default value of false is being sent through to the model which is discarding the values I want to retain.
    I've tried some EL in the selected property to set it to true/false based on what's in the table, but the problem with that is that it becomes essentially a read-only control. I need to find some way to disable the value assignment when making the table visible again. Any suggestions?
    Thanks,

    Andrefs,
    In ADF BC, one way we deal with this is by adding a transient Boolean attribute to the View Object with getters (translate 0/1 to false/true) and setters (vice-versa). Then, we bind the UI to the transient attribute. It's been so long since I've done EJB's, but could you take a similar approach?
    John

  • To set Visibility for KM Documents

    Hi
    I uploaded some documents in knowledge Management. Now i want to set visibility for those documents, country wise. That country name is not in the list. How can i add the particular country?
    Thanks,
    Kusuma

    Hi,
    When you create repository to upload documents in knowledge management administration there are certain features are displayed which you can define for your repositories. So, please check there if country option is available. I would prefer to create different repositories for different country as administration will becomes eaiser.
    Thanks
    Sunny

  • [svn:fx-3.x] 7177: Bug: BLZ-192 - Channel. requestTimeout cannot be set via services-config.xml

    Revision: 7177
    Author:   [email protected]
    Date:     2009-05-21 07:56:59 -0700 (Thu, 21 May 2009)
    Log Message:
    Bug: BLZ-192 - Channel.requestTimeout cannot be set via services-config.xml
    QA: Yes
    Doc: Yes
    Details: This is only the client side of the fix.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-192
    Modified Paths:
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/Channel.as

    Revision: 7177
    Author:   [email protected]
    Date:     2009-05-21 07:56:59 -0700 (Thu, 21 May 2009)
    Log Message:
    Bug: BLZ-192 - Channel.requestTimeout cannot be set via services-config.xml
    QA: Yes
    Doc: Yes
    Details: This is only the client side of the fix.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-192
    Modified Paths:
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/Channel.as

  • Truss: cannot trace set-id or unradable object file: file

    Good afternoon,
    As a tool from my company is running very slowly, I wanted to know where something is going wrong. In order to determine this, I have decided to "truss" the tool:
    Prompt>truss <tool>Unfortunately I get error message:
    truss: cannot trace set-id or unradable object file: <file>Can something be done about this?
    Thanks

    Run truss as root, or remove the setuid/setgid bit from the binary.

  • Message error "Define an assignment set in the runtime repository"

    Hello Experts,
    I'm creating a new component and when I'll assign the view created to be displayed in the screen the follow message appears "Define an assignment set in the runtime repository".
    Best regards,
    Caíque Escaler

    Hi,
    I am sure that when you Click on your view in component workbench, this message must be flashing up.
    Correct me if i am wrong.
    Now first thing is its not an error but an info message.
    There is nothing wrong in your developments. It just the fact that just creating a view does not mean we can use it. To use it, you must assign it to either a Window or a View Set or an Overview page in Runtime repository and thats why system tell you that you must do the view assignment.
    Go to the runtime repositoy and assign the view. Now whether it to be assigned to a viewset, overviewpage or window, depends upon your requirement. If your view is Assignement Block, you will attach it to an overviewpage . If its a separate edit/display view then you may attach it in existing viewset or Main Window.
    You can also create an empty window and attach your view to it..Ultimately view assignment completely depends upon what you want the view to be used as.
    Hope it solves your problem.
    Regards,
    Suchita

Maybe you are looking for

  • Digital Signatures on TechNet Gallery - thoughts?

    I've recently obtained a code-signing certificate from DigiCert (who are awesome, and offer these certs for free to MVPs for personal use), and was thinking of going back and signing the various bits of script that I've posted to the TechNet Gallery.

  • Problem about using GOS to store business document!

    Hi Everyone,     I am using Generic Object services toolbar to archive document.    When I attach thru Create Attachment button and display by clicking on the attachments list, it is showing Creator name and the real name of document .But If I attach

  • Finder wont Delete and Gives me Error Code -1407

    So, i'll Just get right into it. About a week ago I installed a MAC NTFS read/write driver (file located here: http://macntfs-3g.blogspot.com/) or whatever in order to transfer a 4gb ISO file over to an NTFS external HD. It was only after this that I

  • Abt copting usrs frm r/3 to BW

    Hi,   Can we copy all users which are there in R/3 to BW..if so how? Please give me the steps. Regards, Mohammed

  • New feature request: please show values once i sort the list in My Samples

    would like to see actual stats / values once i sort the list in My Samples, for e.g. it would be great to display the download count in the list once i sort by downloads or display the ratings once i sort by ratings, etc... This should be just like w