0

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 ?

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by BestJewSinceJC
0

But how can i set number of rows in NB interface

0

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.