Java Swing Key Event esFecha(KeyEvent e)

Here you can find the source of esFecha(KeyEvent e)

Description

es Fecha

License

Open Source License

Declaration

public static boolean esFecha(KeyEvent e) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.awt.event.KeyEvent;

public class Main {
    public static boolean esFecha(KeyEvent e) {
        char c = e.getKeyChar();
        if (!Character.isDigit(c) && c != KeyEvent.VK_MINUS) {
            return true;
        }/*from w  w  w . j a  va2  s. c o  m*/
        return false;
    }
}

Related

  1. checkRowDownEvent(KeyEvent evt)
  2. insertKeyListener(Component component, KeyListener l, int index)
  3. keyEventGetKeyText(int keycode)
  4. keyEventModifiersToKeyStrokeModifiers(int modifiers)
  5. keyStrokeModMac(String keyStrokeStr)