This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 13th, 2012  |  syntax: None  |  size: 0.19 KB  |  views: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public void exit() {
  2.                
  3.         final Test self = this;
  4.                
  5.         Platform.runLater(new Runnable() {
  6.  
  7.                 @Override
  8.                 public void run() {
  9.                         self.frame.dispose();
  10.                 }
  11.                        
  12.         });
  13.  
  14.         Platform.exit();       
  15. }
clone this paste RAW Paste Data