How can I access component to which the KeyListener is associated within the KeyListener itself?
I have to create a universal keylistener which would be associated with whole array of JTextAreas, to be exact, and I need to access each and everyone of them from it.
The
KeyEventcomes with the component originating theKeyEvent“attached,” which can be accessed using itsgetComponentmethod.