// Decompiled by DJ v3.12.12.96 Copyright 2011 Atanas Neshkov  Date: 08/10/2012 8:47:20
// Home Page: http://members.fortunecity.com/neshkov/dj.html http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   BotonCorrecto.java

package project;

import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.border.Border;
import javax.swing.border.EtchedBorder;

// Referenced classes of package project:
//            LeerXML

public class BotonCorrecto extends JButton
{

    public BotonCorrecto(Point punto1, Point punto2, LeerXML leerXML)
    {
        leer = leerXML;
        try
        {
            jbInit();
        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
        border1 = new EtchedBorder(0, Color.white, Color.lightGray);
        setBorder(border1);
        setLocation((int)punto1.getX(), (int)punto1.getY());
        setOpaque(false);
        setSize(new Dimension((int)punto2.getX() - (int)punto1.getX(), (int)punto2.getY() - (int)punto1.getY()));
    }

    private void jbInit()
        throws Exception
    {
        addMouseMotionListener(new MouseMotionListener() {

            public void mouseMoved(MouseEvent e)
            {
                leer.borrarBotones();
            }

            public void mouseDragged(MouseEvent mouseevent)
            {
            }

        }
);
    }

    LeerXML leer;
    private Border border1;
}