Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.titanium.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("Titanium V1 Launcher") ;
- this.setSize(975, 625) ;
- this.setDefaultCloseOperation(EXIT_ON_CLOSE);
- this.setLocationRelativeTo(null);
- this.setUndecorated(true);
- this.setIconImage(Swinger.getResource("LauncherIcon.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/titanium/launcher/ressources/");
- instance = new LauncherFrame() ;
- }
- public static LauncherFrame getInstance( ) {
- return instance;
- }
- public LauncherPanel getLauncherPanel() {
- return this.launcherPanel ;
- }
- }
Add Comment
Please, Sign In to add comment