Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.BorderLayout;
- import java.awt.EventQueue;
- import javax.swing.JFrame;
- import javax.swing.JPanel;
- import javax.swing.border.EmptyBorder;
- public class PruebasConVentanas extends JFrame {
- private JPanel contentPane;
- JFrame frame= new JFrame("ventana");
- public PruebasConVentanas() {
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.setSize(290, 150);//configurando tamaño de la ventana
- frame.setVisible(true);//configurando visualización de la ventana
- }
- public static void main(String[] args) {
- PruebasConVentanas ventana = new PruebasConVentanas();
- PruebasConVentanas ventana2 = new PruebasConVentanas();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement