1

I decided to change the layout on my component in Netbeans GUI builder (aka Matisse).

enter image description here

Now it has completely screwed up my panel. I want to add a main panel to the center (ie default), and then add other components to the left or the right, however in Netbeans I don't see any option in the builder to add something NORTH, SOUTH etc.

Oliver Watkins
  • 12,575
  • 33
  • 119
  • 225
  • can you change its by hand in file ? – alex2410 Dec 10 '13 at 14:53
  • netbeans matisse doesnt let you change this in code – Oliver Watkins Dec 10 '13 at 14:57
  • 1
    Yet another case of 'the tail wagging the dog'. Stop being your IDEs 'bitch'. – Andrew Thompson Dec 10 '13 at 15:05
  • 1
    agree. GUI builder is great for the short term, to throw something together. But when things get serious... you gotta hand-code the GUI code. – Oliver Watkins Dec 10 '13 at 16:19
  • @AndrewThompson, that is the kind of stuff I hear people say when I tell them I code in Java. – ryvantage Dec 12 '13 at 04:10
  • @oliverwatkins, "when things get serious... you gotta hand-code the GUI code" is simply not true... – ryvantage Dec 12 '13 at 04:11
  • I'm going to write a blog about the many exceptionally robust GUIs I've written exclusively with Matisse... – ryvantage Dec 12 '13 at 04:12
  • @ryvantage *'..you gotta hand-code the GUI code" is simply not true.' Agree strongly with that. I've seen some masterful GUIs created with Matisse. The 'objections' I have to GUI designers are 1) They are often used by people that don't yet understand the layouts. 2) They make the code non-portable (e.g. "don't edit this in Eclipse!" type crap). – Andrew Thompson Dec 13 '13 at 03:35
  • @AndrewThompson, yes. Both good points. – ryvantage Dec 13 '13 at 03:58
  • GUI Builders are fine, but they only provide a static representation. What happens when the GUI changes depending on user, or state? At that point i need always need to abandon the GUI builder. – Oliver Watkins Dec 13 '13 at 09:59

1 Answers1

11

Go to the desired component and right-click in properties then layout and then select the desired direction.

enter image description here

nachokk
  • 14,363
  • 4
  • 24
  • 53