File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 77
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: 10768

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: 77
Thank you
I agree. Here's the link:
subject: Spring Layout
jQuery in Action, 3rd edition