开发者

Question about Alignment in Java

I create jFrame and put some components on it . I put Jpanel on it also in the left side of JFram when I change the size of the JFrame , the location of panel (Accourding Left Side of the JFram ) changed ...

How can I keep the same space between the panel and the left edge of JFrame Is th开发者_Python百科ere Layout benefits me ??

mabey this image clears my request .. http://www.freeimagehosting.net/uploads/b26bfdd5d7.png


Use a layout like the GridBagLayout.


http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html should tell you all you need to know.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜