package holaatodos;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.*;
import javax.swing.JLabel;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * <p>Title: Hola a todos</p>
 *
 * <p>Description: este es el tutorial hola a todos</p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: Mi empresa</p>
 *
 * @author Mi nombre
 * @version 1.0
 */
public class Elegir_fichero extends JFrame {
    JPanel jPanel1 = new JPanel();
    JLabel jLabel2 = new JLabel();
    JLabel jLabel3 = new JLabel();
    JButton jButton1 = new JButton();

    public Elegir_fichero() {
        try {
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        getContentPane().setLayout(null);
        jPanel1.setLayout(null);
        jLabel2.setFont(new java.awt.Font("Dialog", Font.BOLD, 15));
        jLabel2.setText("You must select an WS-CDL file to transform");
        jLabel2.setBounds(new Rectangle(40, 100, 319, 76));
        jButton1.setBounds(new Rectangle(168, 231, 72, 21));
        jButton1.setPreferredSize(new Dimension(200, 300));
        jButton1.setText("OK");
        jButton1.addActionListener(new Elegir_fichero_jButton1_actionAdapter(this));
        jPanel1.setPreferredSize(new Dimension(222, 300));
        jLabel3.setFont(new java.awt.Font("Dialog", Font.PLAIN, 20));
        jLabel3.setForeground(Color.red);
        jLabel3.setHorizontalAlignment(SwingConstants.CENTER);
        jLabel3.setHorizontalTextPosition(SwingConstants.CENTER);
        jLabel3.setText("ERROR");
        jLabel3.setBounds(new Rectangle(91, 44, 190, 52));
        jPanel1.add(jLabel2);
        jPanel1.add(jButton1);
        jPanel1.add(jLabel3);
        this.getContentPane().add(jPanel1, null);

        jPanel1.setBounds(new Rectangle( -4, 1, 400, 345));
    }

    public static void main(String[] args) {
        Elegir_fichero elegir_fichero = new Elegir_fichero();
    }

    public void jButton1_actionPerformed(ActionEvent e) {


    }
}


class Elegir_fichero_jButton1_actionAdapter implements ActionListener {
    private Elegir_fichero adaptee;
    Elegir_fichero_jButton1_actionAdapter(Elegir_fichero adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jButton1_actionPerformed(e);
    }
}
