Package PrologPlusCG.gui

Examples of PrologPlusCG.gui.PrologPlusCGFrame


 
  public PrologPlusCGCLI() {
    env = new PPCGEnv();
    PPCGIO_CLI io = new PPCGIO_CLI(env);
    env.io = io;
    prologFrame = new PrologPlusCGFrame(env, false);
  }
View Full Code Here


 
  /** Initializes the applet PrologPlusCGApplet */
  public void init() {
    // Create prolog frame, telling it that we are an applet,
    // so that it doesn't create a GUI.
    prologFrame = new PrologPlusCGFrame(env, true);
   
    PPCGIO_Applet io = new PPCGIO_Applet(env, prologFrame);
    env.io = io;

    // Initialze hash maps
View Full Code Here

public class PrologPlusCG {
  // Construct the application
  public PrologPlusCG() {
    PPCGEnv env = new PPCGEnv();
    PrologPlusCGFrame frame = new PrologPlusCGFrame(env, false);
    PPCGIO_GUI io = new PPCGIO_GUI(env, frame);
    env.io = io;
    frame.validate();
   
    //Center the window
    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 PrologPlusCG.gui.PrologPlusCGFrame

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.