Requesting Help: JTextField Problem

Hello, trying this again as my last post did not result in a soluion to my issue.

I have a JApplet I am working on, building it in Netbeans 5.5.1. I am using the following Swing components for part of the applet:

JTextField jUsernameTextField

JTextField jPasswordTextField

JButton jLoginButton

I originally was using a mousebutton release event handler on the jLoginButton but one of the forum members suggested I switch to an ActionEvent, which I did.

The button's action event fires as expected but the two textfields' getText() method return an empty String whether they have text defined in the component or not. I have been unable to figure out why and am hoping for someone's assistance.

Thank you!

-Andy

[768 byte] By [AndyGCa] at [2007-11-27 7:42:22]
# 1

> JTextField jUsernameTextField

> JTextField jPasswordTextField

> JButton jLoginButton

>

> I originally was using a mousebutton release event

> handler on the jLoginButton but one of the forum

> members suggested I switch to an ActionEvent, which I

> did.

I heartily second that recommendation.

> The button's action event fires as expected but the

> two textfields' getText() method return an empty

> String whether they have text defined in the

> component or not. I have been unable to figure out

> why and am hoping for someone's assistance.

Ya got any code? Consider posting a small [url=http://www.physci.org/codes/sscce/]SSCCE[/url].

(Did I mess up on my url link?)

Message was edited by:

petes1234

petes1234a at 2007-7-12 19:23:13 > top of Java-index,Desktop,Core GUI APIs...
# 2
> (Did I mess up on my url link?)No, I think the URL tag has been disabled while a bug in the forum is being fixed.
camickra at 2007-7-12 19:23:13 > top of Java-index,Desktop,Core GUI APIs...
# 3
Let's try to keep this discussion to just one thread please. I posted a suggestion in the original thread: http://forum.java.sun.com/thread.jspa?threadID=5184125&tstart=0
KelVarnsona at 2007-7-12 19:23:13 > top of Java-index,Desktop,Core GUI APIs...