You are on page 1of 1

/*

Stakka.java
Autores:
Luis 10382
Luis Pedro 10073
Jose M. 10784
20 de noviembre de 2010
Descripcion: main.
*/

import javax.swing.*;
import java.awt.*;
public class Stakka {
public static void main (String[] args){
//Crear ventana
JFrame marco = new JFrame (" Stakka ! ");
// JFrame dummy = this;
String nombrex;
nombrex = JOptionPane.showInputDialog(marco, "Ingrese su Nom
bre");

//Que hacer cuando se cierre la ventana


marco.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
//Crear el objeto de CalculadoraControlPanel
ControlStakkaPanel panel = new ControlStakkaPanel(nombrex);
//Agregar la calculadora al frame
marco.getContentPane().add(panel);
//No se puede cambiar el tamanio
marco.setResizable(true);
//Adaptarse a los componentes
marco.pack();
//Mostrar
marco.setVisible(true);
}
}

You might also like