Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import java.awt.BorderLayout;
  2. import java.awt.EventQueue;
  3. import javax.swing.JFrame;
  4. import javax.swing.JPanel;
  5. import javax.swing.border.EmptyBorder;
  6.  
  7. public class PruebasConVentanas extends JFrame {
  8.  
  9. private JPanel contentPane;
  10. JFrame frame= new JFrame("ventana");
  11.  
  12. public PruebasConVentanas() {
  13. frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  14. frame.setSize(290, 150);//configurando tamaño de la ventana
  15. frame.setVisible(true);//configurando visualización de la ventana
  16. }
  17.  
  18. public static void main(String[] args) {
  19. PruebasConVentanas ventana = new PruebasConVentanas();
  20. PruebasConVentanas ventana2 = new PruebasConVentanas();
  21. }
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement