Advertisement
xEzee

Principal

Nov 13th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. import java.awt.FlowLayout;
  2.  
  3. import javax.swing.JFrame;
  4.  
  5. /**
  6.  * Clase autónoma (metodo main) para visaulizar la ventana en pantalla
  7.  * @author Ezequiel
  8.  *
  9.  */
  10. public class Principal {
  11.  
  12.     public static void main(String[] args) {
  13.        
  14.         JFrame frame = new JFrame();
  15.         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  16.         frame.getContentPane().setLayout(new FlowLayout(FlowLayout.CENTER));
  17.         frame.getContentPane().add(new DocenteUI());
  18.         frame.setSize(670, 250);
  19.         frame.setVisible(true);
  20.         frame.setTitle("CRUD Docente");
  21.     }
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement