This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Spring Layout 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 » Swing / AWT / SWT
Bookmark "Spring Layout" Watch "Spring Layout" New topic

Spring Layout

kelly devon
Ranch Hand

Joined: Apr 15, 2004
Posts: 75
I am using spring layout to design my form which contains eight fields. the challenge am having is collecting the information from the field and putting it into a database row by row. i used a for statement to create the form, That is using one texfield in a loop to run 8 times. do i use a loop to get out the information before sending it to the database? please help . Thanks

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167

Yes, the for loop sounds logical.
Check out the Container#getComponentCount and Container#getComponent methods. You might find them useful

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
kelly devon
Ranch Hand

Joined: Apr 15, 2004
Posts: 75
Thank you
Don't get me started about those stupid light bulbs.
subject: Spring Layout
Similar Threads
Login form spring and hybernet
Add row dynamically in html table based on the number of records in the database using jsp
Using of sample code from sun's tutorials
How can I have a TAB inside my JSP
Scroll bar does not retain its position after or before pack