|
@ -1,5 +1,9 @@ |
|
|
package jorpelu.com; |
|
|
package jorpelu.com; |
|
|
|
|
|
|
|
|
|
|
|
import java.awt.FlowLayout; |
|
|
|
|
|
import java.awt.GridLayout; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JButton; |
|
|
import javax.swing.JFrame; |
|
|
import javax.swing.JFrame; |
|
|
import javax.swing.JLabel; |
|
|
import javax.swing.JLabel; |
|
|
import javax.swing.JPanel; |
|
|
import javax.swing.JPanel; |
|
@ -16,6 +20,7 @@ public class Ventana extends JFrame{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public Ventana() { |
|
|
public Ventana() { |
|
|
|
|
|
|
|
|
Componentes(); |
|
|
Componentes(); |
|
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
setSize(400,600); |
|
|
setSize(400,600); |
|
@ -24,14 +29,16 @@ public class Ventana extends JFrame{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void Componentes() { |
|
|
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)); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|