/*
 * CadastroFornecedores.java
 *
 * Created on 9 de Setembro de 2006, 10:53
 */

package siscad;

/**
 *
 * @author  awolf
 */
public class CadastroFornecedores extends javax.swing.JDialog {
    
    /** Creates new form CadastroFornecedores */
    public CadastroFornecedores(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Janelinha");
        setResizable(false);
        addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                tecla(evt);
            }
        });

        pack();
    }// </editor-fold>//GEN-END:initComponents
    
    private void tecla(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_tecla
        System.out.println(evt.getKeyChar()+" "+ evt.getKeyCode()+ " "+evt.getKeyLocation());
        if(evt.getKeyCode() == evt.VK_ENTER){
            System.out.println("voce deu um enter");
        }
    }//GEN-LAST:event_tecla
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new CadastroFornecedores(new javax.swing.JFrame(), true).setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables
    
}
