You can use Layouts to have and arrange your components like labels and textfield and so.
if you want indexing on your components, you can dynamicaly generate your components
when loading your application or in handling an event on some of your components, like changing state of a comboBox, if you dynamicaly change your form components( add some components or remove them ) or change the arrangement of comopnents, you shoud call the revalidate method on your component( perhaps a JFrame or JPanel ) to apply this changes.