• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JTextField not accessable in applet

 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks lester, you have given excellent links for layouts.

anybody there who can give the solution to my problem.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic