Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

SWT UI not updating.

Options
  • 15-04-2007 7:16pm
    #1
    Registered Users Posts: 21,264 ✭✭✭✭


    Ok I have my threading all set up on my UI, works grand (it is a standalone SWT app).

    The problem is that I have a timer task running to update the UI. Timer runs fine but the UI will not update until the mouse moves over the UI or the application gets focus.

    I am using the following to send requests to redraw the UI.
    Display.getDefault ().asyncExec (new Runnable () {...

    (I have also tried syncExec).

    Is there anything else I need to be doing to let my App update its UI without needing the mouse over? I've tried pack() and redraw().


Comments

  • Registered Users Posts: 21,264 ✭✭✭✭Hobbes


    ack nevermind had that line in the wrong part of the code.


Advertisement