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
Jump to Post
A 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
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.