Package lanzadores

Source Code of lanzadores.Launcher

package lanzadores;

import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;

import compilador.editor.Editor;
import compilador.editor.gui.EdMenuBar;

import pruebas.ReadingFile;

public class Launcher {
  public static void main (String args[]){
    //ReadingFile v = new ReadingFile("Textos txt");
    Editor v = new Editor("EditorMJ", args, new EditorExe("sd",args));
    EdMenuBar BarraMenu = new EdMenuBar(v);
    Toolkit tk = Toolkit.getDefaultToolkit();
    Dimension screenSize = tk.getScreenSize();
    int toRestHeight = 150;
    int toRestWidth = 120;
   
    //v.setJMenuBar(v.createMenuBar());
    v.setJMenuBar(BarraMenu.createMenuBar());
    //v.setEdMenuBar(BarraMenu);
    v.setBounds(toRestWidth/2,toRestHeight/2,
        screenSize.width-toRestWidth, screenSize.height-toRestHeight);
        //v.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    v.setVisible(true);
   
  }
}
TOP

Related Classes of lanzadores.Launcher

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.