Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use GridLayout for a dynamic frame  RSS feed

 
Gaurav Chikara
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My requiremnet says that as long as I keep on finding components like input text field,drop down list, Buttons in my parsing result
I have to keep them adding one by one in a frame
Now initially I thought of using GridLayout for it.But in GridLayout we have to specify the no of columns and rows in advance.
Then I thought of using this Layout without any paramters
but this extends horizontally in that case adding each new lement there and does not expand vertically
I want that for each new element I found a new row should be added in my frame using a particular layout like gridlayout (or gridbaglayout)
Can anyone tell me as how can I achieve this functionality
Thankx in advance
:roll:
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a vertical BoxLayout and you should get the functionality you want.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!