|
|||||
|
|
#1 |
|
|
function, I was able to c**** the square then use up/down/left/right to move it. However, after I added a textfield to my applet, the keyListener does not work anymore; the square no longer moves. I understand that the textfield is probably the first component in my program which stole the focus and somehow causing conflict with my keyListener. How can i lose defocus the textfield and get it back to the applet (the default focus before the introduction of textfield). Or how can i requestFocus on the applet without the focus automactically slipping back to the textfield? |
|
|
#2 |
|
|
> I have a paint program .. Code? <http://www.physci.org/codes/sscce.jsp> >..and say when i paint .. Let the code (mostly) do the talking. -- Andrew Thompson http://www.PhySci.org/ Open-source software suite http://www.PhySci.org/codes/ Web & IT Help http://www.1point1C.org/ Science & Technology |