Status Display

I have written an application which runs in a JFrame. I want to display the message "Processing...." on a JLabel while my program is performing its calculations. Although I use the setText() method of JLabel just before the processing starts, the label stays blank until the processing is actually over so all the user can see is "Processing complete". Even a repaint() immediately after the call to setText() doesn't help. Similarly, the status doesn't change to "Processing...." once the next input is entered. What could be the problem?

adamflater is almost right. Only problem is you need to update GUI components in the Swing Event thread, which means you need to use something like SwingUtilities.invokeLater() instead of a simple Thread.
I'd do something more like....
public class Cross extends JFrame implements ActionListener
private JLabel statusLabel;
// main, GUI setup and other methods...
public void actionPerformed(...)
     Thread procThread = new Thread()
          public void run()
               updateStatus("Processing....");
               //...processing code...
               updateStatus("Processing Complete" );
     procThread.start();
private void updateStatus(String sText)
     SwingUtilities.invokeLater(new Runnable()
       public void run()
          statusLabel.setText(sText);
}

Similar Messages

  • Question:managed server status display unknown ??

    platform: AS5 weblogic8.16 cluter
    when managed server startup,status ok,but after some days,managed server status is unknown or shutdown in console web
    I check process "ps -ef|grep java" managed server process exit
    and application on managed server is ok
    this is log in domain.log
    ####<2009-9-9 <Warning> <Management> <web3> <myserver> <ExecuteThread: '1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <BEA-141138> <Managed Server web03 is disconnected from the admin server. This may be either due to a managed server getting temporarily partitioned or the managed server process exiting.>
    after restart managed server ,status running
    so why managed server status display unknown/shutdown after some days?? how can i solve this problem??

    Status unknown means that node manager can't establish contact with the mgd server. If your server is dropping out of the cluster, that would result in Unknown.
    Your server could be dropping out of the cluster for many, many reasons. If it is always the same server dropping out, that points to a particular node in your cluster.

  • PO status displayed in error

    Hi,
    We have implemented SRM extended classic scenario.
    1) Shopping carts after approval, are getting converted to Purchase Orders (PO's), but in the web the PO status (for some only) is being displayed as "In Error".
    The PO is successfully replicated in R/3. These are old PO's. We cannot manually go and change the status in table CRM_JEST as we are in the production environment. why are we getting this error
    2) What are the function modules used to update the status (PO In error).
    Thanks and Regards,
    Jack

    Executed the FM BBP_PD_PO_STATUS_CHANGE by entering the PO GUID and with the status as I1180 (The PO status in the web is "PO In Error" and in TCode BBP_PD it is dispaying as I1180). But the status is not getting changed, the FM module is not returning any values (messages)
    Also executed FM BBP_PD_PO_STATUS_CHANGE_DIRECT, by entering the PO GUID, Item GUID, activity as " RELP"and Save DB as "X"
    1) Are the values for FM BBP_PD_PO_STATUS_CHANGE_DIRECT, "RELP" for activity and "X" for save DB correct. If not what should be the correct values, as the status is not getting changed
    2) Is there anything else that I need to do to change the status of the PO from "In error" in the web?

  • Wrong DG redo log status display in GC

    Hi ALL:
    I am using GC 12c to monitor DG.
    But the redo log applied status is wrong on one physical DG ,which always display with only 1 log recieved.
    I verified the DG configuration and result shows:Timed out after 60 seconds waiting for log to be applied.
    I checked DG status on this physical DG node and result shows syncing normally.

    Would recommend to check on both Primary and Standy DB for any hung process related to archiver or redo

  • Wrong Status  displayed  transaction STWB_WORK and STWB_2

    Hi ,
    we have created a ZSLF Transaction type  (Copy of SLFN)
    we have defined our own messages status like Open, Clarification, Rejected.... etc
    but when the status are seen under the Test Plan>>Test Package (Tcode:stwb_Work) or Tcode STwb_2(Test Plan) the status are wrongly displayed.
    e.g: status New is displayed instead of Open , "Send to SAP" is displayed instead of "Rejected"
    can any one point us where to look for this issue correction
    Regards,
    Pradeep L

    solved.

  • System Status display

    Hi,
    I am facing problem where in the system status for all objects like maintenance order, notifications, equipment is not displayed in status bar. When I click 'i' to see status it displays me the status but not in the status bar.
    Can any one provide me a solution for this
    Thanks

    Hi, Alex, thanks for responding.  The users do not receive a no authorization message when they change the editing mode, and yes, they can save any changes.  What is interesting is that I started making changes to other authorization objects under "Controlling" and I think I'm getting closer, I've limited users to be able to set the "Lock" status only, so once I find out how to restrict that option, I think I'm golden.

  • SRM-Menu "Check status" displays only part of the relevant SC

    When unsing funktion in SRM-Menu "Check status" the displayed SC are 11 (limited to last year).
    In fact the number of SC is 81 when using function "Monitor Shopping Cart" (limited to last year).
    Did any one face this issue beforeß what is a solution to show all corresponding SC ?
    We use SRM_SERVER 550 (SAPKIBKT09)
    Thanks & regards
    Isam

    Hi
    Have the user id ( employ id ) ever deleted between this time period and have restored the same user id
    again? Have u reassign this user id in Org structure also?
    In this case tick on 'bought on behalf of ' of check status including tick on 'including completed shopping
    carts'.
    If this does not help then please analyse ( date, status, deleted/approved/rejected etc ) the SCs showing in Monitor SC and those showing in check status. I think details analysis might help u to slove your problem
    Thanks and regards.
    Ruma Paul.

  • Sdhfhead: status displayed wrong (e-status resp. asterisks)

    Hi Experts,
    my issue isn't easy to describe.. let's get it on:
    when changing a status within an urgent correction (SDHF), ta CRMD_ORDER, the log window on the right lower side shows something like "status was set to value "'in development'" (in german: "Der Status wurde auf den Wert 'In Entwicklung' gesetzt").
    I don't know why, but under some circumstances (other SolMan System, other profile), it says "status was set to value E0012" (in german: "Der Status wurde auf den Wert E0012 gesetzt"), what is correct, though, but I do not want the e-status but its description displayed, as above.
    Even more suspicious: sometimes (and, once more, I don't know why) it says "status was set to value '****************************" (in german: Der Status wurde auf den Wert '**************************** gesetzt") which is totally not wanted. It shows 28 asterisks with a single inverted comma in the beginning.
    I think it has something to do with self-made actions and status but i haven't found the customizing for it. Can anybody help??
    Greetz,
    Dirk

    Check the customizing settings in SPRO at:  "Define Status Attributes"
    For every status used within your transaction type you need to have an entry in table TSOCM_STAT_PROP.
    That table is maintained via customizing section "Define Status Attributes" (all status) or via "Make Settings for Change Transaction Types" (select transaction type --> "specify status attributes").
    After those entries are made the correct description will be shown in the log file.
    /cheers
    Edit: beside what I mentioned above this is also the section where you determine to which system the action "logon to system" will take you. In case action "logon to system" is available when status E0002 is reached and you have assigned "Quality System" to status E0002 then performing this action would take you to your Quality System.
    Edited by: Christian Kaunzner on May 16, 2008 1:40 PM

  • Fast forward icon in the play status display

    for the past few days, instead of displaying a play or pause icon in the upper-left hand corner (the play status), my ipod is displaying a fastforward icon. that's it. not that anything else is wrong, i just get worried when anything out of the ordinary happens. give me a shout. thanks.
    Toshiba Notebook   Windows XP Pro  

    You will want to reset your iPod...
    Resetting iPod
    This does not affect the data on your iPod. It is similar to restarting a computer.
    Should be working now
    btabz

  • Capslock status display has disappeared

    I have a new DX735-ST5N02 aio. It used to have a little display in the lower right corner above the notification area that told me the status of the Capslock, Numlock, and something else. I do not know the name of the utility that did this, but it has disappeared. I have gone through the User's Guide, and have found no mention of it. I have launched almost all of the installed utilities, and cannot find it. Does anyone know the name of the utility, and how to get it back? (And what did I do to lose it?)
    Thanks,
    Gene
    Solved!
    Go to Solution.

    Found it Gene!!!  The file you need is tostogkeymon.exe.  Should be found at Program Files/Toshiba/Flash Cards/tostogkeymon.exe. Also should be listed under Task Manager/Processes if you have it. I googled Toshiba Keyboard Indicator and one of the answers was the following:  http://systemexplorer.net/db/tostogkeymon.exe.html
    C.B.
    Toshiba Sat. C75D-B7260 Win 8.1 64 Bit--Toshiba Sat. L775D-S7132 Win 7 HP SP1 64 Bit and Win 10 PRO Technical Preview--Toshiba Sat. L305-S5921 Win Vista SP2 32 Bit

  • Status display in monitor

    Hi experts,
    In the consolidation monitor, I've got consolidation group hierarchy (company) called H1, and bellow all companies.
    When I execute the function of data collection at the consolidation group level (H1) in the update mode, it executes the function for all companies, and even though some companies may not have the data, the status of all companies is the same: without errors, but with warnings.
    It's hard to manage the consolidation process because I can't track which companies have submmitted the data and which haven't submitted, I mean visually in the monitor.
    My question is: Is the status in the monitor workind correctly, and how can I track by task each company status?
    Thanks in advance,
    Edited by: Beatriz Fitzgibbon on Sep 5, 2008 11:50 AM

    Yes the status is updated correctly. The wya to determine whether or the data has been collected is to have a task subsequent to the data collection for a validation to check this.

  • LMS 3.0.1, RME 4.1.1 - Inventory Collection Status displays too many device

    Running LMS 3.0.1 with RME 4.1.1 on a Windows box. On the Inventory Collection Status screen I see the following:
    Inventory Collection Status No. of Devices
    Inventory Collected: 1246
    Inventory Never Collected: 0
    Inventory Recently Failed: 34
    Total 1246
    The problem with this is that I only have 668 devices. Is this just a cosmetic issue?

    Assuming you're not integrated with ACS, then yes.  If integrated with ACS, some of the devices may not be authorized.  You will need to check your ACS configuration to make sure all devices in LMS are known to ACS and that your user (and the System Identity User) is authorized to manage them.

  • SC  STATUS DISPLAYED  WRONGLY  AFTER  REJECTION

    Hi All,
       I have implemented the BADI BBP_WFL_APPROV_BADI for n-level SC approval WF ws14000133.Now my problem is when the approver rejects the Witem,the witem doesnt go back to the requestor for accepting the changes for the rejected Witem.
      Also the Witem (after rejecting teh complete SC)does *** back to the requestor..but with the status "Awaiting appproval" instead of "In your Inbox".
    Also when I see the Approval Preview for that SC,it shows that the SC is approved instead of rejected.
      With the note 790027 the status is getting updated but not the apporval preview.
    Has anybody across such problem?
    Regards,
    Disha.

    Hi,
    Refer to the OSS note 962488 and implement and refer to
    FM    :  SWD_WFD_REPLICATE_FROM_9999 
    which may help to solve your problem.
    Reg.,
    Sridhar.

  • Status display in Reporting

    Hi Friends,
    I want to display in report based on opening Balance. (EX: if Opening Balance is < 0 then Credit and if opening Balance >0 then Debit.
    Please give me inputs How will I Achieve this. Your points are assured.
    Thanks and Regards
    Prasad

    Hi
    Do what anil suggested already.
    It will work fine if you are not displaying any text in the value...like credit..debit...
    Assign points if useful
    Cheers
    N Ganesh

  • Query Data availability Status Display

    Hi
    We have a Requirement wherein we need to show Traffic status against Query. The Status " Green" would indicate that all the underlying infoproviders have been loaded, the data load is up to date & query is ready to use.
    I have explored BI Technical content, but i am not able to find anything which meets this requirement.
    we are on BI 7.0 SP15.
    Thanks in Advance
    Regards
    Swapnil.

    Hi Sandeep
    This is not what i require. We wanted to show a traffic light status indicator against Queries.
    Basically the user wanted to have a Web Entry tool in which they would like to see Query status & not the infoprovider status. The query status as i mentioned earlier should correspond to the latest data avaliability in all the underlying Infocubes/ODS.
    Regards
    Swapnil.

Maybe you are looking for

  • My ipad video is not working.

    I was trying to take a movie with it and it wouldn't switch from photo to video. I also tried Skype to see if the video function would work and it didn't. How can I fix this?

  • How do i check the serial and model number of my iphone 4s

    how do i check the serial and model number of my iphone 4s

  • Downloading drivers

    My hard drive crashed on my HP Pavilion dv7-4165dx Entertainment Notebook PC and I want to get files off it. I downloaded the driver and it just downloaded a bunch of nonsense. How can I get my files, pictures and videos off my hard drive?

  • [Bug?] Hypertrend Draws 'Fake' Gaps in Data

    Hi I have noticed Hypertrend drawing gaps in the data (when there is actually data there). This can be confirm when you zoom in on the data. Is this a known issue, or is there any workaround/configuration? The images are from Hypertrend in LabVIEW, b

  • Boot Server on CD for cross Subnet Jumpstart

    I'm looking for a way to do cross subnet jumpstart installs without a boot server local to the subnet. Is it possible to create a boot server image on CD similiar to the Jumpstart CD process listed at: http://www.sun.com/solutions/blueprints/0301/Bui