SHARE
TWEET

Untitled

a guest Mar 10th, 2019 19 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package fr.titanium.launcher;
  2.  
  3. import javax.swing.JFrame;
  4.  
  5. import fr.theshark34.openlauncherlib.launcher.util.WindowMover;
  6. import fr.theshark34.swinger.Swinger;
  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.        
  16.         this.setTitle("Titanium V1 Launcher") ;
  17.         this.setSize(975, 625) ;
  18.         this.setDefaultCloseOperation(EXIT_ON_CLOSE);
  19.         this.setLocationRelativeTo(null);
  20.         this.setUndecorated(true);
  21.         this.setIconImage(Swinger.getResource("LauncherIcon.png")) ;
  22.         this.setContentPane(launcherPanel = new LauncherPanel());
  23.  
  24.        
  25.         WindowMover mover = new WindowMover(this) ;
  26.         this.addMouseListener(mover);
  27.         this.addMouseMotionListener(mover);
  28.        
  29.         this.setVisible(true);     
  30.        
  31.     }
  32.  
  33.     public static void main(String[] args) {
  34.        
  35.         Swinger.setSystemLookNFeel();
  36.         Swinger.setResourcePath("/fr/titanium/launcher/ressources/");
  37.        
  38.         instance = new LauncherFrame() ;
  39.     }
  40.    
  41.     public static LauncherFrame getInstance( ) {
  42.         return instance;
  43.     }
  44.    
  45.     public LauncherPanel getLauncherPanel() {
  46.        
  47.         return this.launcherPanel ;
  48.        
  49.     }
  50.    
  51.    
  52.    
  53.    
  54.    
  55.    
  56.    
  57.    
  58.    
  59.    
  60.  
  61. }
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