// Decompiled by DJ v3.12.12.96 Copyright 2011 Atanas Neshkov  Date: 08/10/2012 8:47:22
// 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:   BotonPantallaPrincipal.java

package project;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import traduccion.Traducir;

// Referenced classes of package project:
//            PantallaPrincipal, Application1, AccederADatos

public class BotonPantallaPrincipal extends JButton
{

    public BotonPantallaPrincipal(String caption, PantallaPrincipal pantallaPrincipal, int idioma)
    {
        super(caption);
        this.pantallaPrincipal = pantallaPrincipal;
        this.idioma = idioma;
        javax.swing.border.Border border1 = BorderFactory.createCompoundBorder(BorderFactory.createBevelBorder(0, Color.lightGray, Color.white, new Color(103, 101, 98), new Color(148, 145, 140)), BorderFactory.createEmptyBorder(0, 5, 0, 5));
        setBackground(new Color(236, 242, 249));
        setFont(new Font("Dialog", 1, 12));
        setForeground(new Color(39, 79, 118));
        setBorder(border1);
        setFocusPainted(false);
        setText(caption);
        setVisible(true);
        setCursor(new Cursor(12));
        setPreferredSize(new Dimension(110, 20));
        addMouseListener(new MouseAdapter() {

            public void mouseExited(MouseEvent e)
            {
                pantallaPrincipal.mensajitos.setText("");
            }

        }
);
        addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e)
            {
                pantallaPrincipal.aplicacion.pantallaPrincipal.setVisible(false);
                pantallaPrincipal.aplicacion.primerPaso();
            }

        }
);
        addMouseMotionListener(new MouseMotionListener() {

            public void mouseMoved(MouseEvent event)
            {
                pantallaPrincipal.x = event.getX();
                pantallaPrincipal.y = event.getY();
                pantallaPrincipal.mensajitos.setText(Traducir.getTraduccion(AccederADatos.leer("h.proyecto"), "project.PantallaPrincipal", "200412151214", String.valueOf(idioma)));
            }

            public void mouseDragged(MouseEvent mouseevent)
            {
            }

        }
);
    }

    public static void main(String args1[])
    {
    }

    public PantallaPrincipal pantallaPrincipal;
    public int idioma;
}