This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JTextField not accessable in applet

 
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.
 
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.
 
    Bookmark Topic Watch Topic
  • New Topic