[Java] GridBagLayout

Java GridBagLayout 排版管理器基礎介紹,列出 anchor、fill、gridx、weightx 等主要配置參數,附外部教學資源連結。

只有連結,因為看連結就好了,圖解很累XD

(圖片來源:http://blog.csdn.net/dmgactive/archive/2009/06/28/4304567.aspx )
http://download.oracle.com/javase/tutorial/uiswing/layout/gridbag.html http://felixcic.blogspot.com/2010/11/gridbaglayout.html http://home.so-net.net.tw/idealist/Java/AWT/GridBagLayout.html

大致上是設定以下參數

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
public int anchor  
public int fill  
public gridheight  
Public gridweight  
public girdx  
public gridy  
public Insets insets  
public int ipadx  
public int ipady  
public double weightx  
public double weighty

大概是這樣

comments powered by Disqus
Powered by Hugo. Theme Stack. All Rights Reserved.