diff options
Diffstat (limited to 'java/demo/Ice/applet/HelloApplet.java')
-rw-r--r-- | java/demo/Ice/applet/HelloApplet.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/java/demo/Ice/applet/HelloApplet.java b/java/demo/Ice/applet/HelloApplet.java index ea3837f5289..8dac17b6435 100644 --- a/java/demo/Ice/applet/HelloApplet.java +++ b/java/demo/Ice/applet/HelloApplet.java @@ -462,20 +462,13 @@ public class HelloApplet extends JApplet private void flush() { - new Thread(new Runnable() - { - public void run() + _communicator.begin_flushBatchRequests(new Ice.Callback_Communicator_flushBatchRequests() { - try - { - _communicator.flushBatchRequests(); - } - catch(final Ice.LocalException ex) + public void exception(final Ice.LocalException ex) { handleException(ex); } - } - }).start(); + }); _flush.setEnabled(false); _status.setText("Flushed batch requests"); |