Results 1 to 4 of 4
- 10-31-2012, 11:43 AM #1
Member
- Join Date
- Aug 2012
- Posts
- 35
- Rep Power
- 0
problem with mouse and keylistener
hello everyone.,
I am designing a simple calculator these days,and added actionevent and mouselistener and keylistener successfully.
when i run the program and give input from keyboard it takes successfully, after clicking a button with mouse when i give input from keyboard it does not take any input.
please help.
- 10-31-2012, 01:07 PM #2
Re: problem with mouse and keylistener
Don't use a KeyListener. Swing was designed to work with Key Bindings.
How to Use Key Bindings (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Other Swing Features)
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 10-31-2012, 04:35 PM #3
Member
- Join Date
- Aug 2012
- Posts
- 35
- Rep Power
- 0
Re: problem with mouse and keylistener
i had seen the tut but it is complicated,can anyone write some code for one button .
-
Re: problem with mouse and keylistener
Similar Threads
-
A problem with KeyListener
By Reskaillev in forum New To JavaReplies: 4Last Post: 07-22-2011, 02:29 AM -
KeyListener Graphics Problem
By Makesfolkslose in forum New To JavaReplies: 2Last Post: 05-26-2011, 04:07 AM -
Problem with Keylistener, some help pls
By syon in forum AWT / SwingReplies: 1Last Post: 01-21-2011, 01:31 AM -
AWT KeyListener Problem
By plm-pusik in forum New To JavaReplies: 15Last Post: 11-10-2010, 03:38 PM -
KeyListener problem
By siyi90 in forum AWT / SwingReplies: 7Last Post: 02-08-2010, 10:16 AM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks