• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextField not accessable in applet

 
sasank manohar
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
//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
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks lester, you have given excellent links for layouts.

anybody there who can give the solution to my problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic