0

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

2
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by JamesCherrill
0

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 good example of why we usually advise people not to use an IDE until they have got the basics right - Netbeans is doing stuff for you, but you don't know what.

0

I don't use netbeans myself, so I can't help, other than to advise you to go back to a simple programmer's editor and learn to write yor own code (and yes, I can help with that). Maybe one of our netbeans users can step in here?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.