Mudreco

Clase Ventana_Principal

Jun 18th, 2018
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.85 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package ejercicioinscripciones;
  7.  
  8. import java.awt.FlowLayout;
  9. import javax.swing.JButton;
  10. import javax.swing.JFrame;
  11.  
  12. public class Ventana_Principal extends JFrame {
  13.  
  14.     public Ventana_Principal() {
  15.         super.setLayout(new FlowLayout());
  16.         super.setBounds(500, 500, 200, 200);
  17.         super.setVisible(true);
  18.         super.setDefaultCloseOperation(EXIT_ON_CLOSE);
  19.         super.add(botonAdministrador);
  20.         super.add(botonEstudiante);
  21.         super.setLocationRelativeTo(null);
  22.         super.setResizable(false);
  23.  
  24.     }
  25.     JButton botonAdministrador = new JButton("Administrador");
  26.     JButton botonEstudiante = new JButton("Estudiante");
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment