Examples of YNDialog


Examples of net.ftb.gui.dialogs.YNDialog

    public static void killMC () {
        //if Mc is running
        if (LaunchFrame.MCRunning) {
            //open confirm dialog for closing MC
            YNDialog yn = new YNDialog("KILL_MC_MESSAGE", "KILL_MC_CONFIRM", "KILL_MC_TITLE");
            yn.setVisible(true);
            yn.toFront();

            if (yn.ready && yn.ret && LaunchFrame.MCRunning && LaunchFrame.getProcMonitor() != null) {
                Logger.logWarn("MC Killed by the user!");
                LaunchFrame.getProcMonitor().stop();
            }

            yn.setVisible(false);
        } else {
            Logger.logInfo("No Minecraft Process currently running to kill");
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.