Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SuppressWarnings("serial")
- public class LauncherFrame extends JFrame {
- private static LauncherFrame instance;
- private LauncherPanel launcherPanel;
- public LauncherFrame( ) {
- this.setTitle("Crescenia serveur Roleplay");
- this.setSize(750, 500);
- 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/diablocraft/ressource/");
- 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