Advertisement
Guest User

Untitled

a guest
Oct 13th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void exit() {
  2.        
  3.     final Test self = this;
  4.        
  5.     Platform.runLater(new Runnable() {
  6.  
  7.         @Override
  8.         public void run() {
  9.             Platform.exit();
  10.         }
  11.            
  12.     });
  13.        
  14.     SwingUtilities.invokeLater(new Runnable() {
  15.            
  16.         @Override
  17.         public void run() {
  18.             self.frame.dispose();
  19.         }
  20.     });
  21.        
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement