my dog learned polymorphism
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 The Software Craftsman this week in the Agile 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: 10690

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
I agree. Here's the link:
subject: Spring Layout