1

When if a panel has layout properties like horizontal size and vertical size, then I'm able to hide the panel and space used by panel is also shrinking. But If the panel has layout properties like X and Y, then I'm able to hide the panel, But space used by panel is left blank and not removed.

How to make the space shrink, when the panel is hidden?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
merlachandra
  • 376
  • 2
  • 17

1 Answers1

1

Couldn't you just hide the component and then revalidate/repaint the container? This will effectively cause the container to "shrink."

mre
  • 43,520
  • 33
  • 120
  • 170
  • Is there Any Option in Netbeans to Revalidate or repaint container or need to it using Source code underlying it? – merlachandra Mar 30 '12 at 13:34
  • I'm not sure. It's easier to develop UIs manually IMHO. You may have to delve into the source code yourself. – mre Mar 30 '12 at 13:35