锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品欧美一区喷水,国自在线精品视频,欧美激情精品久久久久久变态http://www.aygfsteel.com/javagui/category/26799.htmlJava Desktop Technologyzh-cnWed, 22 Aug 2012 04:37:27 GMTWed, 22 Aug 2012 04:37:27 GMT60閫氳繃xml閰嶇疆鏂囦歡瀹氫箟鍙婂竷灞緇勪歡http://www.aygfsteel.com/javagui/archive/2007/12/31/171788.htmlsun_java_studio@yahoo.com.cn(鐢電帺)sun_java_studio@yahoo.com.cn(鐢電帺)Sun, 30 Dec 2007 16:49:00 GMThttp://www.aygfsteel.com/javagui/archive/2007/12/31/171788.htmlhttp://www.aygfsteel.com/javagui/comments/171788.htmlhttp://www.aygfsteel.com/javagui/archive/2007/12/31/171788.html#Feedback4http://www.aygfsteel.com/javagui/comments/commentRss/171788.htmlhttp://www.aygfsteel.com/javagui/services/trackbacks/171788.html闃呰鍏ㄦ枃

sun_java_studio@yahoo.com.cn(鐢電帺) 2007-12-31 00:49 鍙戣〃璇勮
]]>
緇堜簬鏈夋椂闂村啓Blog浜?/title><link>http://www.aygfsteel.com/javagui/archive/2007/12/25/170373.html</link><dc:creator>sun_java_studio@yahoo.com.cn(鐢電帺)</dc:creator><author>sun_java_studio@yahoo.com.cn(鐢電帺)</author><pubDate>Tue, 25 Dec 2007 11:13:00 GMT</pubDate><guid>http://www.aygfsteel.com/javagui/archive/2007/12/25/170373.html</guid><wfw:comment>http://www.aygfsteel.com/javagui/comments/170373.html</wfw:comment><comments>http://www.aygfsteel.com/javagui/archive/2007/12/25/170373.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/javagui/comments/commentRss/170373.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/javagui/services/trackbacks/170373.html</trackback:ping><description><![CDATA[     鎽樿: 娌夐粯浜嗚繎涓涓湀錛岀粓浜庢湁鏃墮棿鍐橞log浜嗐?nbsp; <a href='http://www.aygfsteel.com/javagui/archive/2007/12/25/170373.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/javagui/aggbug/170373.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/javagui/" target="_blank">sun_java_studio@yahoo.com.cn(鐢電帺)</a> 2007-12-25 19:13 <a href="http://www.aygfsteel.com/javagui/archive/2007/12/25/170373.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鑷畾涔夊竷灞綆$悊鍣?CenterLayouthttp://www.aygfsteel.com/javagui/archive/2007/11/29/164038.htmlsun_java_studio@yahoo.com.cn(鐢電帺)sun_java_studio@yahoo.com.cn(鐢電帺)Thu, 29 Nov 2007 08:53:00 GMThttp://www.aygfsteel.com/javagui/archive/2007/11/29/164038.htmlhttp://www.aygfsteel.com/javagui/comments/164038.htmlhttp://www.aygfsteel.com/javagui/archive/2007/11/29/164038.html#Feedback1http://www.aygfsteel.com/javagui/comments/commentRss/164038.htmlhttp://www.aygfsteel.com/javagui/services/trackbacks/164038.html涓婃枃鑷畾涔夊竷灞綆$悊鍣?FormLayout浠嬬粛浜咶ormLayout鐨勫弬鑰冨疄鐜幫紝鍒╃敤FormLayout錛岄氳繃鎸囧畾left銆乼op銆?/p>

right錛堝彲閫夛級銆乥ottom錛堝彲閫夛級甯冨眬綰︽潫鍙互瀵圭粍浠惰繘琛岀簿紜畾浣嶃傜劧鑰屾湁浜涚粍浠跺湪涓氬姟涓婃槸鏈夊浐瀹氬昂瀵哥殑錛屼緥濡?a title="鑷畾涔夌粍浠朵箣Button" href="http://www.aygfsteel.com/javagui/archive/2007/11/11/javagui.html">鑷畾涔夌粍浠朵箣Button浠嬬粛鐨勪竴鏍鳳紝閫氳繃緇欐寜閽寚瀹?縐嶇姸鎬佹椂鐨勫浘鐗囷紝閭d箞緇勪歡鐨勬渶浣沖昂瀵稿氨鏄浘鐗囩殑灝哄錛屽洜姝ょ粍浠剁殑PreferredSize灝卞彲浠ョ‘瀹氾紝鎵浠ユ鏃跺彧闇瑕佺粍浠?span style="color: red;">涓績鐨勭‘瀹氬潗鏍囧氨鍙互浜嗭紝瀹為檯緇勪歡鐨凩ocation鍙拰鍏禤referredSize鏈夊叧銆傚涓嬪浘鎵紺猴細

榪欏氨鏄疌enterLayout鐨勬濇兂銆?/p>

淇敼FormData錛屽彧闇瑕佹坊鍔犱袱涓彉閲忓嵆鍙?br /> public final class FormData {
    public FormAttachment left;

    public FormAttachment right;

    public FormAttachment top;

    public FormAttachment bottom;

    public FormAttachment centerX;

    public FormAttachment centerY;
}
CenterLayout涓嶧ormLayout涓嶅悓鍙湪浜巃ddLayoutComponent銆乴ayoutContainer榪欎袱涓?/p>

鏂規硶瀹炵幇錛屽叾浠栨帴鍙f柟娉曞潎鐩稿悓錛屾墍浠ヤ笅闈㈠彧浠嬬粛榪欎袱涓柟娉曞疄鐜幫紝鍏朵粬鎺ュ彛鏂規硶璇?/p>

鍙傞槄涓婃枃鑷畾涔夊竷灞綆$悊鍣?FormLayout
鍦╝ddLayoutComponent鏂規硶鐨勫紑澶達紝鍚屾牱鏄甯冨眬綰︽潫鍙傛暟constraints鍚堟硶鎬ц繘琛屾鏌ワ紝榪欑偣涓嶧ormLayout澶ц嚧鐩稿悓銆?/p> if (constraints == null) {
            throw new IllegalArgumentException("constraints can't be null");
        } else if (!(constraints instanceof FormData)) {
            throw new IllegalArgumentException("constraints must be a " + FormData.class.getName() + " instance");
        } else {
            synchronized (comp.getTreeLock()) {
                FormData formData = (FormData) constraints;
                if (formData.centerX == null || formData.centerY == null) {
                    throw new IllegalArgumentException("centerX FormAttachment and centerY FormAttachment can't be null");
                } else if (comp.getPreferredSize() == null) {
                    throw new RuntimeException("component must have preferred size before be add into parent with CenterLayout");
                }
                 componentConstraints.put(comp, (FormData) constraints);
            }
        }

瀵逛簬CenterLayout鏉ヨ錛孎ormData瀵硅薄鐨刢enterX銆乧enterY蹇呴』緇欏嚭錛屽洜涓哄畠浠h〃錛岀偣鐨勫潗鏍囷紝闄ゆ涔嬪緇勪歡蹇呴』鏈塒referredSize灞炴ф潵鎸囧畾緇勪歡澶у皬銆?/p>

layoutContainer鏂規硶瀹炵幇涔熷ぇ鑷寸浉鍚?br /> public synchronized void layoutContainer(Container target) {
        synchronized (target.getTreeLock()) {
            int w = target.getWidth();
            int h = target.getHeight();
            Component[] components = target.getComponents();
            for (Component comp : components) {
                FormData formData = componentConstraints.get(comp);
                if (formData != null) {
                    ...
                }
            }
        }
    }
涓婇潰榪欐涓嶧ormLayout涓鏍楓傚叧閿湪if璇彞鍧楀唴錛屼唬鐮佸涓嬶細
  FormAttachment centerX = formData.centerX;
                    FormAttachment centerY = formData.centerY;
                    int width = component.getPreferredSize().width;
                    int height = component.getPreferredSize().height;
                    int x = (int) (centerX.percentage * w) + centerX.offset - width / 2;
                    int y = (int) (centerY.percentage * h) + centerY.offset - height / 2;
                    comp.setBounds(x, y, width, height);
鑾峰緱centerX銆乧enterY浠ュ強鏈浣沖昂瀵革紝濡備笂鍥炬墍紺猴紝涓嶉毦寰楀嚭x銆亂鐨勮綆楁柟娉曘?br />
鑷蟲錛岃嚜瀹氫箟甯冨眬綆$悊鍣ㄥ氨浠嬬粛鍒拌繖閲岋紝榪欎袱涓竷灞綾誨彲浠ヨВ鍐沖緢澶?span style="color: red;">闈欐佸竷灞闇姹傦紝鎵璋撻潤鎬佸竷灞鏄寚瀹瑰櫒鍐呮湁浠涔堢粍浠舵槸鍥哄畾鐨勩傚鏋滈亣鍒板姩鎬佺晫闈紝渚嬪緇勪歡鐨勫唴瀹逛緷鐓х敤鎴風駭鍒佹彃浠舵墿灞曠偣絳夊洜绱犲喅瀹氾紝涔熷茍涓嶆槸闅句簨錛屽洜涓轟簡瑙d簡甯冨眬綆$悊鍣ㄨ繍琛屾満鍒朵互鍚庡彲寰堝鏄撳湴瀹氫箟閫傚悎浣犻渶姹傜殑甯冨眬綾匯傚浜庨潤鎬佸竷灞鏉ヨ錛屼綘鍙兘鍘屽︿簡hard coding鏉ュ竷灞錛屼綘甯屾湜榪欎竴鍒囩敱xml榪欐牱鐨勯厤緗悶瀹氾紝濂斤紝涓嬩竴閮ㄥ垎鍒欏紑濮?#8220;鍘嬭醬鎴?#8221;——鐢ㄩ厤緗枃浠惰В鍐沖竷灞銆?/p>

sun_java_studio@yahoo.com.cn(鐢電帺) 2007-11-29 16:53 鍙戣〃璇勮
]]>
鑷畾涔夊竷灞綆$悊鍣?FormLayouthttp://www.aygfsteel.com/javagui/archive/2007/11/24/FormLayout.htmlsun_java_studio@yahoo.com.cn(鐢電帺)sun_java_studio@yahoo.com.cn(鐢電帺)Sat, 24 Nov 2007 10:26:00 GMThttp://www.aygfsteel.com/javagui/archive/2007/11/24/FormLayout.htmlhttp://www.aygfsteel.com/javagui/comments/162877.htmlhttp://www.aygfsteel.com/javagui/archive/2007/11/24/FormLayout.html#Feedback5http://www.aygfsteel.com/javagui/comments/commentRss/162877.htmlhttp://www.aygfsteel.com/javagui/services/trackbacks/162877.html闃呰鍏ㄦ枃

sun_java_studio@yahoo.com.cn(鐢電帺) 2007-11-24 18:26 鍙戣〃璇勮
]]>
swing涓撲笟澶栬http://www.aygfsteel.com/javagui/archive/2007/11/07/158849.htmlsun_java_studio@yahoo.com.cn(鐢電帺)sun_java_studio@yahoo.com.cn(鐢電帺)Wed, 07 Nov 2007 08:17:00 GMThttp://www.aygfsteel.com/javagui/archive/2007/11/07/158849.htmlhttp://www.aygfsteel.com/javagui/comments/158849.htmlhttp://www.aygfsteel.com/javagui/archive/2007/11/07/158849.html#Feedback22http://www.aygfsteel.com/javagui/comments/commentRss/158849.htmlhttp://www.aygfsteel.com/javagui/services/trackbacks/158849.html闃呰鍏ㄦ枃

sun_java_studio@yahoo.com.cn(鐢電帺) 2007-11-07 16:17 鍙戣〃璇勮
]]>
鎵撻犱笓涓氬瑙?涓?/title><link>http://www.aygfsteel.com/javagui/archive/2007/11/07/158693.html</link><dc:creator>sun_java_studio@yahoo.com.cn(鐢電帺)</dc:creator><author>sun_java_studio@yahoo.com.cn(鐢電帺)</author><pubDate>Tue, 06 Nov 2007 16:49:00 GMT</pubDate><guid>http://www.aygfsteel.com/javagui/archive/2007/11/07/158693.html</guid><wfw:comment>http://www.aygfsteel.com/javagui/comments/158693.html</wfw:comment><comments>http://www.aygfsteel.com/javagui/archive/2007/11/07/158693.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.aygfsteel.com/javagui/comments/commentRss/158693.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/javagui/services/trackbacks/158693.html</trackback:ping><description><![CDATA[     鎽樿: 鍦ㄣ婃墦閫犱笓涓氬瑙?浜屻嬩腑錛岀暀涓嬩簡3涓湭瀹炵幇鐨勫姛鑳斤細紿楀彛鏍囬鍜屽浘鏍囷紝杈圭紭鍦嗚錛屽姛鑳芥寜閽傚湪鏈瘒涓皢瀹炵幇榪欎簺鍔熻兘鏉ュ畬緇撴墦閫犱笓涓氬瑙?紿楀彛閮ㄥ垎鐨勮瑙c?nbsp; <a href='http://www.aygfsteel.com/javagui/archive/2007/11/07/158693.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/javagui/aggbug/158693.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/javagui/" target="_blank">sun_java_studio@yahoo.com.cn(鐢電帺)</a> 2007-11-07 00:49 <a href="http://www.aygfsteel.com/javagui/archive/2007/11/07/158693.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎵撻犱笓涓氬瑙?浜?/title><link>http://www.aygfsteel.com/javagui/archive/2007/11/04/158107.html</link><dc:creator>sun_java_studio@yahoo.com.cn(鐢電帺)</dc:creator><author>sun_java_studio@yahoo.com.cn(鐢電帺)</author><pubDate>Sun, 04 Nov 2007 12:12:00 GMT</pubDate><guid>http://www.aygfsteel.com/javagui/archive/2007/11/04/158107.html</guid><wfw:comment>http://www.aygfsteel.com/javagui/comments/158107.html</wfw:comment><comments>http://www.aygfsteel.com/javagui/archive/2007/11/04/158107.html#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://www.aygfsteel.com/javagui/comments/commentRss/158107.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/javagui/services/trackbacks/158107.html</trackback:ping><description><![CDATA[     鎽樿: 鍦ㄤ笂涓綃囥婃墦閫犱笓涓氬瑙?涔濆鍥俱嬶紝浠嬬粛浜嗕節瀹牸鐨勬蹇靛茍鐣欎笅浜嗕竴涓紨紺虹▼搴忋傞偅涓▼搴忓彧鏄竴涓覆鏌撹繃鐨勭獥鍙o紝璁稿蹇呰鐨勫姛鑳藉皻鏈疄鐜幫紝姣斿鎷栨嫿縐誨姩銆佹敼鍙樺ぇ灝忋佹爣棰樻爮鍙屽嚮絳夈傚ソ鐜板湪灝辨潵涓涓瀹炵幇銆?nbsp; <a href='http://www.aygfsteel.com/javagui/archive/2007/11/04/158107.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/javagui/aggbug/158107.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/javagui/" target="_blank">sun_java_studio@yahoo.com.cn(鐢電帺)</a> 2007-11-04 20:12 <a href="http://www.aygfsteel.com/javagui/archive/2007/11/04/158107.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎵撻犱笓涓氬瑙?涔濆鍥?/title><link>http://www.aygfsteel.com/javagui/archive/2007/11/03/157948.html</link><dc:creator>sun_java_studio@yahoo.com.cn(鐢電帺)</dc:creator><author>sun_java_studio@yahoo.com.cn(鐢電帺)</author><pubDate>Sat, 03 Nov 2007 09:56:00 GMT</pubDate><guid>http://www.aygfsteel.com/javagui/archive/2007/11/03/157948.html</guid><wfw:comment>http://www.aygfsteel.com/javagui/comments/157948.html</wfw:comment><comments>http://www.aygfsteel.com/javagui/archive/2007/11/03/157948.html#Feedback</comments><slash:comments>43</slash:comments><wfw:commentRss>http://www.aygfsteel.com/javagui/comments/commentRss/157948.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/javagui/services/trackbacks/157948.html</trackback:ping><description><![CDATA[     鎽樿: 璧峰垵渚濊禆JButton銆丣Scroll絳夊熀紜緇勪歡錛孊orderLayout銆丗lowLayout絳夌幇鎴愮殑甯冨眬綆$悊鍣ㄤ紒鍥捐兘瀹炵幇綾諱技MSN鐨勫瑙傛晥鏋滐紝浣嗘槸瀹為檯鐪嬫潵鏄畬鍏ㄤ笉鍙兘鐨勶紝鎵浠ユ垜褰撴椂灝變笅浜嗚繖鏍風殑緇撹錛屽摢鎬曠幇鍦ㄦ垜渚濈劧璁や負鏄紜殑錛氣滄姏寮冩墍鏈夌殑澶栬璁捐宸ュ叿鍜屼竴鍒囩幇鏈夌殑妗岄潰緇勪歡鍙婂竷灞綆$悊鍣紝涓鍒囩殑涓鍒囧繀欏昏嚜瀹氫箟瀹炵幇錛岃璁″伐鍏鋒渶澶氳兘鏇夸綘瀹屾垚涓鍗娾濄?nbsp; <a href='http://www.aygfsteel.com/javagui/archive/2007/11/03/157948.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/javagui/aggbug/157948.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/javagui/" target="_blank">sun_java_studio@yahoo.com.cn(鐢電帺)</a> 2007-11-03 17:56 <a href="http://www.aygfsteel.com/javagui/archive/2007/11/03/157948.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">资源县</a>| <a href="http://" target="_blank">宁波市</a>| <a href="http://" target="_blank">哈尔滨市</a>| <a href="http://" target="_blank">龙井市</a>| <a href="http://" target="_blank">保定市</a>| <a href="http://" target="_blank">大关县</a>| <a href="http://" target="_blank">平乡县</a>| <a href="http://" target="_blank">海阳市</a>| <a href="http://" target="_blank">师宗县</a>| <a href="http://" target="_blank">龙川县</a>| <a href="http://" target="_blank">通辽市</a>| <a href="http://" target="_blank">讷河市</a>| <a href="http://" target="_blank">湘西</a>| <a href="http://" target="_blank">调兵山市</a>| <a href="http://" target="_blank">东乡县</a>| <a href="http://" target="_blank">湖南省</a>| <a href="http://" target="_blank">嘉黎县</a>| <a href="http://" target="_blank">定日县</a>| <a href="http://" target="_blank">沙洋县</a>| <a href="http://" target="_blank">沂南县</a>| <a href="http://" target="_blank">富阳市</a>| <a href="http://" target="_blank">江城</a>| <a href="http://" target="_blank">保亭</a>| <a href="http://" target="_blank">隆安县</a>| <a href="http://" target="_blank">托克托县</a>| <a href="http://" target="_blank">天津市</a>| <a href="http://" target="_blank">隆子县</a>| <a href="http://" target="_blank">南通市</a>| <a href="http://" target="_blank">蒲城县</a>| <a href="http://" target="_blank">周宁县</a>| <a href="http://" target="_blank">扎赉特旗</a>| <a href="http://" target="_blank">南陵县</a>| <a href="http://" target="_blank">民勤县</a>| <a href="http://" target="_blank">保康县</a>| <a href="http://" target="_blank">红河县</a>| <a href="http://" target="_blank">滦南县</a>| <a href="http://" target="_blank">清水河县</a>| <a href="http://" target="_blank">栾川县</a>| <a href="http://" target="_blank">汾阳市</a>| <a href="http://" target="_blank">潜山县</a>| <a href="http://" target="_blank">临沭县</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>