http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: java



On Tue 07 Sep, Claus B. Pedersen wrote:
> It should be possible. As far as I recall, you should use public boolean
> action(Event evt, Object obj). This method receives the <return> key
> presses. In the method you then have to check evt.target to see in which
> component the key was pressed. Ex.:
> public boolean(Event evt, Object obj)
> {
> 	if (event.target == varTextField)
> 		doSomething()
> 
> 	return true;
> }
Yeah, I tried this last night, but it didn't do anything.


Regards,

Matt. W.
-- 
      ***   eudoxus@freeuk.com   ***
***   http://www.eudoxus.freeuk.com/   ***
mwebster@apsoft.co.uk   http://members.xoom.com/eudoxusM/

=================================================================
To SUBSCRIBE or UNSUBSCRIBE please visit
http://gameprogrammer.com/mailinglist.html



  • References:
    • RE: java
      • From: "Claus B. Pedersen" <cbp@post4.tele.dk>