• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

AWT ?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What arguments can you put in Keylistner?
Thanks in advance
Ketu
 
Trailboss
Posts: 23242
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A PROPER NAME IS NOW REQUIRED!
See http://www.javaranch.com/ubb/Forum10/HTML/000180.html for details.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi k2joshi
u can use keyevent as a argument
regards
yyy
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
KeyListener is an interface and not a method. So you can't put any arguments. However it has 3 methods. Here is the list with argument types they accept.
keyPressed(KeyEvent e)
keyReeased(KeyEvent e)
keyTyped(KeyEvent e)

Please register with your real name.
 
K2Joshi
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,
my real name is Ketu Joshi, i have tried to register my real name but it's been taken. So tell me what to do.

Ketu
 
paul wheaton
Trailboss
Posts: 23242
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I prefer that you ask this question in the JavaRanch forum so that others can benefit from the discussion.
 
reply
    Bookmark Topic Watch Topic
  • New Topic