详见,http://java.sun.com/products/jlf/ed2/samcode/logindi.html
其中用到import samples.accessory.StringGridBagLayout,源代码中还有一段英文提示
/**
* This method is called from within the constructor to
* initialize the dialog.
*
* We use dynamic layout managers, so that layout is dynamic and will
* adapt properly to user-customized fonts and localized text. The
* GridBagLayout makes it easy to line up components of varying
* sizes along invisible vertical and horizontal grid lines. It
* is important to sketch the layout of the interface and decide
* on the grid before writing the layout code.
*
*
* Here we actually use
* our own subclass of GridBagLayout called StringGridBagLayout,
* which allows us to use strings to specify constraints, rather
* than having to create GridBagConstraints objects manually.
* /google找不到这个类,请问该怎么样写这个类?
其中用到import samples.accessory.StringGridBagLayout,源代码中还有一段英文提示
/**
* This method is called from within the constructor to
* initialize the dialog.
*
* We use dynamic layout managers, so that layout is dynamic and will
* adapt properly to user-customized fonts and localized text. The
* GridBagLayout makes it easy to line up components of varying
* sizes along invisible vertical and horizontal grid lines. It
* is important to sketch the layout of the interface and decide
* on the grid before writing the layout code.
*
*
* Here we actually use
* our own subclass of GridBagLayout called StringGridBagLayout,
* which allows us to use strings to specify constraints, rather
* than having to create GridBagConstraints objects manually.
* /google找不到这个类,请问该怎么样写这个类?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货