Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 22-12-2011, 12:59 PM   #1 (permalink)
Level 96 Headbanger
 
DeSmOnD dAvId's Avatar
 
Join Date: Apr 2005
Location: Metalopolis
Posts: 1,121
Default Keyboard functionality problem in GWT


Hi,

I am learning GWT and want to create an application which can add entries to a table when I press enter. For this purpose I have used the following method:

Code:
newSymbolTextBox.addKeyPressHandler(new KeyPressHandler() {
		      public void onKeyPress(KeyPressEvent event) {
		    	  System.out.println(""+event.getCharCode());
		        if (event.getCharCode()==KeyCodes.KEY_ENTER) {
		          addData();
		        }
		      }
		    });
However, this is not working for some reason. I ran the debugger and found out that the KeyCodes class cannot be resolved, even though its been imported. Is there something I have overlooked? Please help.
__________________
"Words meant to dwell in darkness shall never see the light of day.
Words can be broken, so can bones. Execute the mandate." :twisted:


Steam : DeathMetal
Garena : death_metal27
My Blog : The Pandemonium
(Latest Post : Where does music come from?)
Guitar gear : GB&A (acoustic), ESP LTD-M50 (New :twisted:), Roland MicroCube Amp.
DeSmOnD dAvId is online now   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 10-01-2012, 01:20 AM   #2 (permalink)
Level 96 Headbanger
 
DeSmOnD dAvId's Avatar
 
Join Date: Apr 2005
Location: Metalopolis
Posts: 1,121
Default Re: Keyboard functionality problem in GWT

Anyone? Anyone at all?
__________________
"Words meant to dwell in darkness shall never see the light of day.
Words can be broken, so can bones. Execute the mandate." :twisted:


Steam : DeathMetal
Garena : death_metal27
My Blog : The Pandemonium
(Latest Post : Where does music come from?)
Guitar gear : GB&A (acoustic), ESP LTD-M50 (New :twisted:), Roland MicroCube Amp.
DeSmOnD dAvId is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:37 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2