|
|
@ -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)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |