Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.__tomi__.erazium.launcher;
- import javax.swing.JFrame;
- import fr.theshark34.openlauncherlib.launcher.util.WindowMover;
- import fr.theshark34.swinger.Swinger;
- @SuppressWarnings("serial")
- public class LauncherFrame extends JFrame {
- private static LauncherFrame instance;
- private LauncherPanel launcherpanel;
- public LauncherFrame() {
- this.setTitle("Erazium Launcher");
- this.setSize(975, 625);
- this.setDefaultCloseOperation(EXIT_ON_CLOSE);
- this.setLocationRelativeTo(null);
- this.setUndecorated(true);
- this.setIconImage(Swinger.getResource("icon.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/__tomi__/erazium/launcher/ressources/");
- instance = new LauncherFrame();
- }
- public static LauncherFrame getInstance() {
- return instance;
- }
- public LauncherPanel getLauncherPanel() {
- return this.launcherpanel;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement