|
|
@ -1,5 +1,9 @@ |
|
|
|
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; |
|
|
@ -16,6 +20,7 @@ public class Ventana extends JFrame{ |
|
|
|
} |
|
|
|
|
|
|
|
public Ventana() { |
|
|
|
|
|
|
|
Componentes(); |
|
|
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
|
setSize(400,600); |
|
|
@ -24,14 +29,16 @@ public class Ventana extends JFrame{ |
|
|
|
} |
|
|
|
|
|
|
|
public void Componentes() { |
|
|
|
titulo = new JLabel(); |
|
|
|
titulo.setBounds(getBounds()); |
|
|
|
titulo.setText("Escriba la ruta de un archivo que quiera copiar: "); |
|
|
|
add(titulo); |
|
|
|
|
|
|
|
ruta = new JTextField(); |
|
|
|
ruta.setBounds(getBounds()); |
|
|
|
|
|
|
|
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)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|