Hello guys i trying to manage the size of two jpanel according to the size of Main Jframe. I using netbeans drag and drop Jpanel1 is big and another one is small. wat i need to do is to change those panels size when main frame is resized> how can i do plz help. I tried borderLayout() but when i do this , my second panel is invisble. the whole panel is occupied by only fisrt panel. How can i do it in netbeans plz help
47pirates
9
Junior Poster in Training
Recommended Answers
Jump to PostA LayoutManager is how you do it - looks like there's some (small) error in how you have chosen the parameters, that's all. Are you specifying where in the layout the panels should be added? If you just add them they both go in the centre.
ps: this is a …
All 3 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
47pirates
9
Junior Poster in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.