*
The moose likes Applets and the fly likes JTextField not accessable in applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "JTextField not accessable in applet" Watch "JTextField not accessable in applet" New topic
Author

JTextField not accessable in applet

sasank manohar
Ranch Hand

Joined: Feb 14, 2008
Posts: 186
//SwingApplet.java



//SwingTest.html




If you run SwingApplet.java with the help of SwingTest.html in a browser. You will get a menu .click file-. open then you will get a form . In that the TextFields are not becoming unaccessable . ie if i click on a text field then no cursor is coming . that is the problem.

and one more thing is that how to put the labels and text fields neatly like in html we use tables. but here in swings , what can i use. though i am using like this




it's going to next line only within that label but not within the panel.
Thank you.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
and one more thing is that how to put the labels and text fields neatly like in html we use tables. but here in swings , what can i use.

That's the job of layouts: http://download.oracle.com/javase/tutorial/uiswing/layout/visual.html

Or you can use a ready-made, good-looking dialog component.
sasank manohar
Ranch Hand

Joined: Feb 14, 2008
Posts: 186
Thanks lester, you have given excellent links for layouts.

anybody there who can give the solution to my problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTextField not accessable in applet
 
Similar Threads
convert swing to applet
Browse and Load a Text File
Swing/Applet question
Swing GUI Interface Question
Please Help