[Java] GridBagLayout
2011-05-31 00:00
1 minute read

只有連結,因為看連結就好了,圖解很累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

大致上是設定以下參數

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

大概是這樣


Back to posts


comments powered by Disqus