Class KeyPressTextField

    • Field Detail

      • m_LastPressed

        protected KeyStroke m_LastPressed
        Store the last pressed key
      • m_KeyListener

        protected KeyListener m_KeyListener
        the listener that retrieves the keypress
    • Constructor Detail

      • KeyPressTextField

        public KeyPressTextField()
    • Method Detail

      • getLastPressed

        public KeyStroke getLastPressed()
        a getter for the keypress currently stored in the text field
        Returns:
        the last key pressed
      • setLastPressed

        public void setLastPressed​(KeyStroke lastPressed)
        a setter for the keypress stored in the field
        Parameters:
        lastPressed - the key to use as the last pressed.