开发者

java japplet not accepting input

I'm working on a java applet/desktop application. It runs directly on the desktop, and should also run as a jApplet in a web browser. I'm having some problems though that only occur when the program is running in a web browser. The first is I have some text box's in the application and for some reason they don't accept input. The second is when I press a button, the button kinda fires, but then doesn't actually call a method. I'm not sure what is causing that. http://24.111.117.77/skylabs/nolimits/index.php that's the link to the application so you can see what I mean. And also, when you press login, you should see that a socket connection was made, and a login attempt in the overhead console...but it doesn't show on the web app. Theres quite a bit of code so if anyone has an idea by looking at it, that'd be great. Thanks.

I'm using Swing...and also it doesn't work right as an applet, but it works perfectly as开发者_StackOverflow a standalone application.


If you are using AWT give your text field a width.

TextField textField = new TextField("", 20);

also

setEnabled();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜