SHARE
TWEET

LauncherFrame

a guest Dec 9th, 2018 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package HoraCraft.launcher;
  2.  
  3. import javax.swing.JFrame;
  4.  
  5. import fr.theshark34.swinger.Swinger;
  6. import fr.theshark34.swinger.util.WindowMover;
  7.  
  8. @SuppressWarnings("serial")
  9. public class LauncherFrame extends JFrame {
  10.    
  11.     private static  LauncherFrame instance;
  12.     private LauncherPanel LauncherPanel;
  13.    
  14.     public LauncherFrame() {
  15.         this.setTitle("Adventuria Life Rp");
  16.         this.setSize(990, 588);
  17.         this.setDefaultCloseOperation(EXIT_ON_CLOSE);
  18.         this.setLocationRelativeTo(null);
  19.         this.setUndecorated(false);
  20.         this.setIconImage(Swinger.getResource("icon.png"));
  21.         this.setContentPane(LauncherPanel = new LauncherPanel());
  22.        
  23.         WindowMover mover = new WindowMover(this );
  24.         this.addMouseMotionListener(mover);
  25.         this.addMouseListener(mover);
  26.        
  27.         this.setVisible(true);
  28.     }
  29.    
  30.    
  31.     public static void main(String[] args) {
  32.         Swinger.setSystemLookNFeel();
  33.         Swinger.setResourcePath("/Horacraft/launcher/resources/");
  34.        
  35.         instance = new LauncherFrame();
  36.     }
  37.         public static LauncherFrame getInstance() {
  38.             return instance;
  39.            
  40.     }
  41.        
  42.     public LauncherPanel getLauncherPanel () {
  43.         return this.LauncherPanel;
  44.     }
  45.  
  46. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top