Advertisement
BullyATWiiplaza

SwingWorker

Jun 27th, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. // Define tasks before doInBackground()
  2.  
  3. new SwingWorker<String, String>()
  4. {
  5.     @Override
  6.     protected String doInBackground() throws Exception
  7.     {
  8.         // ...
  9.  
  10.         return null;
  11.     }
  12.  
  13.     @Override
  14.     protected void done()
  15.     {
  16.         // ...
  17.     }
  18. }.execute(); // Execute doInBackground() and then done()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement