package views;
import javax.swing.*;
import java.awt.*;
import controladores.ControladorLoguin;


/**
* This code was generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a
* for-profit company or business) then you should purchase
* a license - please visit www.cloudgarden.com for details.
*/
public class LogWindow extends javax.swing.JFrame {

	public JPasswordField jPasswordField;
	public JButton jButtonLoguin;
	public JLabel jLabelPassword;
	public JTextField jTextFieldUser;
	public JLabel jLabelUser;

	public LogWindow() {
		initGUI();
	}

	/**
	* Initializes the GUI.
	* Auto-generated code - any changes you make will disappear.
	*/
	public void initGUI(){
		try {
	preInitGUI();
	
	try {
		javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
	} catch(Exception e) {
		e.printStackTrace();
	}
	this.setTitle("Loguin");
	this.setResizable(false);
	Container container =this.getContentPane();
	((JPanel)container).setBorder(BorderFactory.createTitledBorder(
														"Entrada al sistema"));
	jLabelUser = new JLabel();
	jTextFieldUser = new JTextField();
	jLabelPassword = new JLabel();
	jButtonLoguin = new JButton(new ControladorLoguin(this));
	jPasswordField = new JPasswordField();
	
	GridBagLayout thisLayout = new GridBagLayout();
	container.setLayout(thisLayout);
	thisLayout.columnWidths = new int[] {1,1};
	thisLayout.rowHeights = new int[] {1,1,1};
	thisLayout.columnWeights = new double[] {0.1,0.1};
	thisLayout.rowWeights = new double[] {0.1,0.1,0.1};
	this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
	this.setSize(new java.awt.Dimension(299,244));
	
	jLabelUser.setText("Nombre de Usuario");
	this.getContentPane().add(jLabelUser, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, 10, 0, new Insets(0, 0, 0, 0), 0, 0));
	
	jTextFieldUser.setText("Ingrese nombre de usuario");
	this.getContentPane().add(jTextFieldUser, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, 10, 0, new Insets(0, 0, 0, 0), 0, 0));
	

	
	jLabelPassword.setText("Password");
	this.getContentPane().add(jLabelPassword, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, 11, 0, new Insets(0, 0, 0, 0), 0, 0));
	
	jButtonLoguin.setText("Loguin");
	jButtonLoguin.setVisible(true);
	this.getContentPane().add(jButtonLoguin, new GridBagConstraints(0, 2, 2, 1, 0.0, 0.0, 11, 0, new Insets(0, 0, 0, 0), 0, 0));
	
	jPasswordField.setPreferredSize(new java.awt.Dimension(140,20));
	this.getContentPane().add(jPasswordField, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, 11, 0, new Insets(0, 0, 0, 0), 0, 0));	postInitGUI();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	/** Add your pre-init code in here 	*/
	public void preInitGUI(){
	}

	/** Add your post-init code in here 	*/
	public void postInitGUI(){
	}

	
}
