خرید بک لینک

Vote count: 1

I'm trying to display a text in eclipse swt browser before the end of program execution, example:

button.addListener(SWT.MouseUp, new Listener() {
    public void handleEvent() {
        //Trying to print immediately
        browser.setText("Example!");

        // sleep for test purposes, simulating the program execution
        try {
            Thread.sleep(2000);
        }
        catch (InterruptedException e1) {
            e1.printStackTrace();
        }

        // end;
    }
});

As exemplified above, the program wait all execution to print "Example!".

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 29 فروردين 1395 ساعت: 20:14

صفحه بندی