Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. package fr.Valba31.Walkerdead.launcher;
  2.  
  3. import javax.swing.JFrame;
  4.  
  5. import fr.theshark34.openlauncherlib.launcher.util.WindowMover;
  6. import fr.theshark34.swinger.Swinger;
  7.  
  8.  
  9. @SuppressWarnings("serial")
  10. public class LauncherFrame extends JFrame {
  11.  
  12. private static LauncherFrame instance;
  13. private LauncherPanel launcherpanel;
  14.  
  15. public LauncherFrame() {
  16. this.setTitle("WalkerDead 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("iconWalkerDead.png"));
  22. this.setContentPane(launcherpanel = new LauncherPanel());
  23.  
  24. WindowMover mover = new WindowMover(this);
  25. this.addMouseListener(mover);
  26. this.addMouseMotionListener(mover);
  27.  
  28. this.setVisible(true);
  29. }
  30.  
  31. public static void main(String[] args) {
  32. Swinger.setSystemLookNFeel();
  33. Swinger.setResourcePath("/fr/valba31/walkerdead/launcher/resources/");
  34.  
  35. instance = new LauncherFrame();
  36. }
  37.  
  38. public static LauncherFrame getInstance() {
  39. return instance;
  40. }
  41.  
  42. public LauncherPanel getLauncherPanel() {
  43. return this.launcherpanel;
  44. }
  45.  
  46.  
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement