Example usage for java.awt.event KeyEvent getKeyCode

List of usage examples for java.awt.event KeyEvent getKeyCode

Introduction

In this page you can find the example usage for java.awt.event KeyEvent getKeyCode.

Prototype

public int getKeyCode() 

Source Link

Document

Returns the integer keyCode associated with the key in this event.

Usage

From source file:br.com.atmatech.sac.view.ViewAtendimento.java

private void jTrealizadoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTrealizadoKeyPressed
    // TODO add your handling code here:
    if (evt.getKeyCode() == KeyEvent.VK_TAB) {
        jTrealizado.transferFocus();/* w ww  .j ava2s  .c o m*/
    }
}

From source file:br.com.atmatech.sac.view.ViewAtendimento.java

private void jDclienteKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jDclienteKeyPressed
    // TODO add your handling code here:
    if ((evt.getKeyCode() == KeyEvent.VK_F)) {
        if (evt.isControlDown()) {
            atalhoBuscaCliente();/*  w  w w . ja v  a2 s  .c  o  m*/
        }
    }

}

From source file:br.com.atmatech.sac.view.ViewAtendimento.java

private void jTsolicitacaoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTsolicitacaoKeyPressed
    // TODO add your handling code here:
    if (evt.getKeyCode() == KeyEvent.VK_TAB) {
        jTsolicitacao.transferFocus();//ww w  .j  av  a 2 s. c o m
    }
}

From source file:org.martin.ftp.gui.GUIClient.java

private void txtPasswordKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtPasswordKeyReleased

    if (evt.getKeyCode() == KeyEvent.VK_ENTER)
        btnConnect.doClick();// www .  j a  v  a2s .  com
}

From source file:org.martin.ftp.gui.GUIClient.java

private void tblFilesKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_tblFilesKeyPressed

    if (evt.getKeyCode() == KeyEvent.VK_ENTER)
        try {//from  w  w  w .j av  a 2s.co  m
            setWorkingDirectory();
        } catch (IOException ex) {
            Logger.getLogger(GUIClient.class.getName()).log(Level.SEVERE, null, ex);
        }
}

From source file:br.com.atmatech.sac.view.ViewAtendimento.java

private void jTtdtecnicoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTtdtecnicoKeyPressed
    // TODO add your handling code here:
    if ((evt.getKeyCode() == evt.VK_ENTER) && (jTtdtecnico.getSelectedRow() >= 0)) {
        clickTecnico();//from  ww w .j a va  2 s.co  m
        jDtecnico.setVisible(false);
        jTsolicitante.requestFocusInWindow();
    }
}

From source file:org.martin.ftp.gui.GUIClient.java

private void tblSearchKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_tblSearchKeyPressed

    if (evt.getKeyCode() == KeyEvent.VK_ENTER)
        try {/* w  ww .j  ava 2 s . c o m*/
            goToFile();
        } catch (IOException ex) {
            Logger.getLogger(GUIClient.class.getName()).log(Level.SEVERE, null, ex);
        }
}

From source file:ru.apertum.qsystem.client.forms.FReception.java

private void treeServicesKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_treeServicesKeyReleased
    if (evt.getKeyCode() == 114) {
        textFieldSerchServiceKeyReleased(evt);
    }//from  w  w w .  j a  v a2  s . c o m
}

From source file:br.com.atmatech.sac.view.ViewPessoa.java

private void jTtempresaKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTtempresaKeyPressed
        // TODO add your handling code here:

        int coluna = jTtempresa.getSelectedColumn();
        if ((evt.getKeyCode() == KeyEvent.VK_F) && (coluna >= 0)) {
            if (evt.isControlDown()) {
                String text = JOptionPane.showInputDialog(this, "Pesquisa: " + jTtempresa.getColumnName(coluna),
                        "PESQUISA", JOptionPane.WARNING_MESSAGE);
                if (text != null) {
                    //DefaultTableModel tabela = (DefaultTableModel) jTtmodulo.getModel();
                    //final TableRowSorter<TableModel> sorter = new TableRowSorter<TableModel>(tabela);
                    // jTtmodulo.setRowSorter(sorter);
                    text = text.toUpperCase();
                    if (jTtempresa.getColumnName(coluna).equals("RAZAO")) {
                        buscaPessoa("RAZAO", text);
                    }/*  w  w w  . java2  s.c  o  m*/
                    if (jTtempresa.getColumnName(coluna).equals("FANTASIA")) {
                        buscaPessoa("FANTASIA", text);
                    }
                    if (jTtempresa.getColumnName(coluna).equals("CNPJ")) {
                        buscaPessoa("CNPJ", text);
                    }
                    if (jTtempresa.getColumnName(coluna).equals("ENDERECO")) {
                        buscaPessoa("ENDERECO", text);
                    }
                }

            }
        }
    }

From source file:br.com.atmatech.sac.view.ViewAtendimento.java

private void jTtdclienteKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTtdclienteKeyPressed
    // TODO add your handling code here:        
    if ((evt.getKeyCode() == KeyEvent.VK_F)) {
        if (evt.isControlDown()) {
            atalhoBuscaCliente();/*from   ww  w.j ava  2 s. c o m*/
        }
    }
    if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
        clienteSelecionado();
    }
}