Package abstrasy.consoleui

Examples of abstrasy.consoleui.FrameWorkConsole


    public static boolean onOpenJDK = (System.getProperty("java.vm.name").indexOf("OpenJDK") >= 0);
    //Construire l'application

    public Main() {

        FrameWorkConsole frame = new FrameWorkConsole();
        //Valider les cadres ayant des tailles prédéfinies
        //Compacter les cadres ayant des infos de taille préférées - ex. depuis leur disposition
        if (packFrame) {
            frame.pack();
        }
        else {
            frame.validate();
        }
        //Centrer la fenêtre
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension frameSize = frame.getSize();
        if (frameSize.height > screenSize.height) {
            frameSize.height = screenSize.height;
        }
        if (frameSize.width > screenSize.width) {
            frameSize.width = screenSize.width;
        }
        frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
        frame.setVisible(true);
    }
View Full Code Here

TOP

Related Classes of abstrasy.consoleui.FrameWorkConsole

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.