I'm using netbeans graphic intarface to create my own JPanel.
But I have a problem.
When I change panel's layout in grid one I can only place cells on left and right side only of others. So instead of 2x2 I can only make 4x1.

Do you know what shoyd I do to make it working ?

9 Years
Discussion Span
Last Post by BestJewSinceJC

But how can i set number of rows in NB interface


I don't really remember. You don't have to specify it through the interface builder tool though, you can simply edit the code itself. On the left you should have some sort of list that indicates what component you are currently highlighting - all you'd need to do is figure out what the name of your JPanel is, by looking through the variable declarations netbeans has done for you (in the code) and then use panel.setColumns and panel.setRows. I have a new computer now, and haven't downloaded netbeans, otherwise I'd tell you how to do it with the interface builder itself.

Edited by BestJewSinceJC: n/a

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.