Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.xolium.urafightlauncher;
- import javax.swing.JFrame;
- import fr.theshark34.swinger.Swinger;
- import fr.theshark34.swinger.util.WindowMover;
- @SuppressWarnings("serial")
- public class LauncherFrame extends JFrame{
- private static LauncherFrame instance;
- private static LauncherPanel launcherPanel;
- public LauncherFrame() {
- this.setTitle("UraFight Launcher");
- this.setSize(975, 625);
- this.setDefaultCloseOperation(EXIT_ON_CLOSE);
- this.setLocationRelativeTo(null);
- this.setUndecorated(true);
- this.setIconImage(Swinger.getResource("logo.png"));
- this.setContentPane(launcherPanel = new LauncherPanel());
- WindowMover mover = new WindowMover(this);
- this.addMouseListener(mover);
- this.addMouseMotionListener(mover);
- this.setVisible(true);
- }
- public static void main(String[] args) {
- Swinger.setSystemLookNFeel();
- Swinger.setResourcePath("/fr/xolium/urafightlauncher/ressources/");
- instance = new LauncherFrame();
- }
- public static LauncherFrame getInstance() {
- return instance;
- }
- public static LauncherPanel getLauncherPanel() {
- return launcherPanel;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement