Package eas.miscellaneous.system.windowFrames

Examples of eas.miscellaneous.system.windowFrames.StaticWindow


   
    public static StaticWindow showImage(
                final BufferedImage img,
                final String name,
                final boolean display) {
        StaticWindow w = new StaticWindow(
                "Static Image View [" + name + "]",
                img.getWidth(null) + 50,
                img.getHeight(null) + 50,
                display);
       
        JScrollPane jsp = new JScrollPane(new JLabel(new ImageIcon(img)));
        w.getContentPane().add(jsp);
       
        if (display) {
            w.setVisible(true);
        }
        return w;
    }
View Full Code Here


            mp3 = new MP3Player(ostToPlay);
            mp3.setRepeat(true);
            new Thread(mp3).start();
           
            try {
                StaticWindow window;
               
                if (params.getParValueBoolean("Polytris.Ultimate")) {
                    window = StaticMethods.showImage(ImageIO.read(new File("sharedDirectory/Polytris/PolytrisLogo-extreme.png")), "", true);
                    window.setSize(window.getWidth() - 40, window.getHeight() - 15);
                } else {
                    window = StaticMethods.showImage(ImageIO.read(new File("sharedDirectory/Polytris/PolytrisLogo.png")), "", true);
                    window.setSize(window.getWidth() - 35, window.getHeight() - 15);
                }
               
                window.setLocationRelativeTo(null);
                Thread.sleep(7500);
                window.dispose();
            } catch (Exception e1) {
                System.out.println("Whoops!" + e1);
            }
           
            AllroundVideoPlugin vid = (AllroundVideoPlugin) umg.getSimTime().getPluginObject(new AllroundVideoPlugin().id());
View Full Code Here

TOP

Related Classes of eas.miscellaneous.system.windowFrames.StaticWindow

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.