Thursday 15 September 2011

java - GridBagLayout biger panel over another panel -


Can someone tell me an example how a panel of a set size is set in a panel of sizes set within a JFrame To be kept on?

I mean something like this

  ------------------- | | | Panel 1 | | | | ------------------- | | | Panel 2 -------------------    

< P> Read the section from the swing tutorial. Many of you can choose. border layout can be easiest because it changes the automatic size of the width

Note that you should not have a hardcoding shape. Let Layout Manager set the size.

No comments:

Post a Comment