From 36b9206c16e2a05c7e7d8e6e655514b862c781a0 Mon Sep 17 00:00:00 2001 From: vigliom Date: Mon, 10 Oct 2022 03:12:47 +0200 Subject: [PATCH] Empiezo coon la ventana principal --- bin/jorpelu/com/Ventana.class | Bin 0 -> 1296 bytes bin/jorpelu/com/Ventana2.class | Bin 1299 -> 0 bytes src/jorpelu/com/Ventana.java | 35 ++++++++++++++++++++++++++++++ src/jorpelu/com/Ventana2.java | 38 --------------------------------- 4 files changed, 35 insertions(+), 38 deletions(-) create mode 100644 bin/jorpelu/com/Ventana.class delete mode 100644 bin/jorpelu/com/Ventana2.class delete mode 100644 src/jorpelu/com/Ventana2.java diff --git a/bin/jorpelu/com/Ventana.class b/bin/jorpelu/com/Ventana.class new file mode 100644 index 0000000000000000000000000000000000000000..e69452106d1baaf1439c98c6f18ad7f7140b1bcf GIT binary patch literal 1296 zcmZux+j0{(82)7Jti5b;Vsa!v7D|b|4sqJ1w2ebrVj2i_0-dC$hKr733s7dga%C-0 zo}#bP8+)dn=>znYI@96T+5`fPby_Yh2R=K~Uc}Flz7-`~AF-+G_9oPAh2&)WkSLv25a!i*q+gxkT zkk+xGZT@u1p?GC>qzK!THnAxqX|@>76iW?CsHwJaaRzx0XW_YEnDS77$8ff$I$ae} z3(;f9*JUL3rQa5z&vom$e4%{qw^Ubhz2UpKfF+B?rzwgF50#J; zuLnjGz132~!BvLYQ=FajZsk+C5Bv0MNg&faP8tcmTcD* z4>z#N;Piw!kgu&O#ogUf!=hXB@HxI9(s{eh5RB*IFHPly<54R1 z^sbieI{#h8#>G0mwqRFnlW#q2fF#b*0Hbq;#rIl`VteGeXF?MZw)QO#TlkI~LpgWE zQyzz=7OI|j&=r~+sUosSF#*A_ViUGK)NqIFM+pttlZh45#mA*a7CTfY2x?Y|w$db! ze|w})F9>YzJrBE9mn`KTN@Gow=~@GPWb(uo1SMn0y7UHet+#Y1-uhS+y6YaOm|nz= zv~|7l`&zXElAJ_6y~H$9$Y6qgrQnSB?0C^4ruhezut^i`#u{D53Az`3B0$v=}T z=V?8c6wFh}No484OjFFJ(PhkFmUeRUNuhtKZH8jM4KddoV4*(5g=XR60GIcMxY8_q zI>2Z9LtJkbiUR~2>6Iz=$K-S$1&l}F_p$-0oXTTt%f%SYuQ)|=V%05|*iCYb1B zGoYNQ)GvK}AJDzqLE(o!?!Fs%3wat~hK8M`!RBxg^H|0L*2uayv4~BI)NqLux{L;v z@B}^tF?Wos=;B%eaD4<~3@{6c`}i>d`YY4 CZy*l< literal 0 HcmV?d00001 diff --git a/bin/jorpelu/com/Ventana2.class b/bin/jorpelu/com/Ventana2.class deleted file mode 100644 index 264645b323bc4502cc0b5894f223e312cfaae84b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1299 zcmZuwQCAa36#gb8>=KtE0TBUpRoW&SBtWgU1ZX9SMg!UdCp3K zSNgI!r#YuTpl|&{J-xGuw6T4e*}Zq}z2EoUd;j?Bx8DKm;s*yQhWT@)J0k3rnyOu@ zi^%YZZ#hUaWx+7(AqS7)Qbn~p zDxwmiYwhzMu3&+ZcZGQ*Uh!UNDxvC%7agIwkt(8W`D&qV-!6K%h9w4v-X6;j7Gb_R z@~wEdjvGXPe0ABCXCb-M`JW1P7e0jsK}B^WZz=7!g#S=C-^jPB8w57*Z4Y;_%HUG$ zi8MCyN=Ki3wW9G*ZZ5lD<-KMz=ei;{m5zzo?=2Pic9DAop8Yvk7Z*f<=yo)!n#Z@B3`9>qBL2j)8Q1nsGdB`Uv6@Ky-Ub!-rU z`?!f6_^6O_RRUedY6AP-5ZVZ~ix+r?=L!7BsF98-%29?@a)RD$;1EY71EY6V*_VF< D@TnjF 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)); - - } - -}