This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I want to create a JFrame or JPanel ,I am able to generate multiple component getting required value from database value objects.It's working good but problem is if the number of component are more and since there setBounds are dynamically set ,they are going out of screen. How can I add them to a Pane so that it automatically gets scollbar with if number of component increases .
I am setting size of screen using Toolkit and Dimension .
That is what GridLayout does, tries to size all components equally.
If you follow through the link which I had provided earlier, you will notice you have an option of various other layouts. You can even nest containers with different layouts, or even have one complex layout with the GridBagLayout.
If you are not satisfied with these layouts you might want to consider MigLayout
Maneesh Bhai,Thanks a lot for the help ,you guys are awesome ,doing a tremendous job of sharing the knowledge ,I will try my level best to contribute to open source technology ,Your team is really helpful and inspiring many like me.Hats off to coderanch