| @ -1,45 +1,11 @@ | |||||
| 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.JLabel; | |||||
| import javax.swing.JPanel; | |||||
| import javax.swing.JTextField; | |||||
| import javax.swing.*; | |||||
| public class Ventana extends JFrame{ | public class Ventana extends JFrame{ | ||||
| private JLabel titulo, porcentaje, Barra; | private JLabel titulo, porcentaje, Barra; | ||||
| private JTextField ruta; | private JTextField ruta; | ||||
| public static void main(String[] args) { | |||||
| new Ventana(); | |||||
| } | |||||
| public Ventana() { | |||||
| 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)); | |||||
| } | |||||
| } | } | ||||
| @ -0,0 +1,45 @@ | |||||
| 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 static void main(String[] args) { | |||||
| new Ventana2(); | |||||
| } | |||||
| 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)); | |||||
| } | |||||
| } | |||||