diff --git a/bin/jorpelu/com/Ventana.class b/bin/jorpelu/com/Ventana.class new file mode 100644 index 0000000..e694521 Binary files /dev/null and b/bin/jorpelu/com/Ventana.class differ diff --git a/bin/jorpelu/com/Ventana2.class b/bin/jorpelu/com/Ventana2.class deleted file mode 100644 index 264645b..0000000 Binary files a/bin/jorpelu/com/Ventana2.class and /dev/null differ diff --git a/src/jorpelu/com/Ventana.java b/src/jorpelu/com/Ventana.java index 13e8ea5..4bd095b 100644 --- a/src/jorpelu/com/Ventana.java +++ b/src/jorpelu/com/Ventana.java @@ -1,2 +1,37 @@ package jorpelu.com; +import java.awt.GridLayout; + +import javax.swing.JButton; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JPanel; +import javax.swing.JTextField; + +public class Ventana extends JFrame { + private JLabel titulo, porcentaje, Barra; + private JTextField ruta; + + public Ventana() { + Componentes(); + + } + + public void Componentes() { + JPanel panel = new JPanel(); + JLabel texto = new JLabel("Introduzca la ruta del archivo a copiar: "); + JTextField ruta = new JTextField(""); + JButton confirmar = new JButton("Confirmar"); + texto.setSize(400, 20); + panel.add(texto); + panel.add(ruta); + panel.add(confirmar); + add(panel); + panel.setLayout(new GridLayout(5, 1)); + setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + setSize(400, 600); + setVisible(true); + setTitle("**Copiador de Archivos**"); + + } +} \ No newline at end of file diff --git a/src/jorpelu/com/Ventana2.java b/src/jorpelu/com/Ventana2.java deleted file mode 100644 index dd801a9..0000000 --- a/src/jorpelu/com/Ventana2.java +++ /dev/null @@ -1,38 +0,0 @@ -package jorpelu.com; - -import java.awt.FlowLayout; -import java.awt.GridLayout; - -import javax.swing.JButton; -import javax.swing.JFrame; -import javax.swing.JLabel; -import javax.swing.JPanel; -import javax.swing.JTextField; - -public class Ventana2 extends JFrame{ - private JLabel titulo, porcentaje, Barra; - private JTextField ruta; - public Ventana2() { - - Componentes(); - setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - setSize(400,600); - setVisible(true); - setTitle("**Copiador de Archivos**"); - } - - public void Componentes() { - JPanel panel = new JPanel(); - JLabel texto = new JLabel("Introduzca la ruta del archivo a copiar: "); - JTextField ruta = new JTextField(""); - JButton confirmar = new JButton("Confirmar"); - texto.setSize(400,20); - panel.add(texto); - panel.add(ruta); - panel.add(confirmar); - add(panel); - panel.setLayout(new GridLayout(5,1)); - - } - -}