Guest User

Untitled

a guest
Apr 26th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.93 KB | None | 0 0
  1. public class GUI extends JFrame {
  2.     private boolean updateChecked = false;
  3.     public static Object lock = new Object();
  4.    
  5.    
  6.     public GUI() {
  7.        
  8.     }
  9.    
  10.     public void createGUI(){
  11.         initComponents();
  12.         this.setVisible(true);
  13.     }
  14.  
  15.     private void InstallMinecraftButton(ActionEvent e) throws IOException {
  16.         MinecraftInstall.createNeededFolders();
  17.         MinecraftInstall.downloadMinecraftFiles();
  18.         synchronized (lock) {
  19.             try {
  20.                 lock.wait();
  21.             } catch (InterruptedException e1) {
  22.                 e1.printStackTrace();
  23.             }
  24.         }
  25.         System.out.println("Download done");
  26.         //String nativesLZMAFileName = Functions.getOS().toLowerCase() +"_natives.jar.lzma";
  27.        // MinecraftInstall.extractLZMA(Functions.getMinecraftDir() + "/bin/" + nativesLZMAFileName, Functions.getMinecraftDir() + "/bin/natives.zip");
  28.         //MinecraftInstall.extractZip(Functions.getMinecraftDir() + "/bin/natives.zip", Functions.getMinecraftDir() + "/bin/natives");
  29.     }
Add Comment
Please, Sign In to add comment