﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-twzheng's cppblog-文章分类-AsWing</title><link>http://www.cppblog.com/twzheng/category/5284.html</link><description>『站在风口浪尖紧握住鼠标旋转！』  人在台北心在汉</description><language>zh-cn</language><lastBuildDate>Mon, 15 Mar 2010 04:03:16 GMT</lastBuildDate><pubDate>Mon, 15 Mar 2010 04:03:16 GMT</pubDate><ttl>60</ttl><item><title>求windows xp 繁体版</title><link>http://www.cppblog.com/twzheng/articles/109710.html</link><dc:creator>谭文政</dc:creator><author>谭文政</author><pubDate>Sun, 14 Mar 2010 16:05:00 GMT</pubDate><guid>http://www.cppblog.com/twzheng/articles/109710.html</guid><wfw:comment>http://www.cppblog.com/twzheng/comments/109710.html</wfw:comment><comments>http://www.cppblog.com/twzheng/articles/109710.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/twzheng/comments/commentRss/109710.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/twzheng/services/trackbacks/109710.html</trackback:ping><description><![CDATA[求windows xp 繁体版，最好是台湾版的，要能一步步的手动安装(想装双系统)<br><br>找了好几天了，很多资源都下不动<br><br>今天好不容易下了一个，但是香港版的，且安装到选择盘符时，键盘所有键都不能使用，所以还是无法安装<br><br>谢谢各位大哥大姐帮帮忙，小弟感激不尽！<img src ="http://www.cppblog.com/twzheng/aggbug/109710.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/twzheng/" target="_blank">谭文政</a> 2010-03-15 00:05 <a href="http://www.cppblog.com/twzheng/articles/109710.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>AsWing布局管理</title><link>http://www.cppblog.com/twzheng/articles/33506.html</link><dc:creator>谭文政</dc:creator><author>谭文政</author><pubDate>Fri, 05 Oct 2007 07:57:00 GMT</pubDate><guid>http://www.cppblog.com/twzheng/articles/33506.html</guid><wfw:comment>http://www.cppblog.com/twzheng/comments/33506.html</wfw:comment><comments>http://www.cppblog.com/twzheng/articles/33506.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/twzheng/comments/commentRss/33506.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/twzheng/services/trackbacks/33506.html</trackback:ping><description><![CDATA[<p><span style="FONT-SIZE: 18pt"><strong>AsWing布局管理——FlowLayout</strong></span><br>[原文] http://harryxu.cn/blog/?p=113&nbsp;&nbsp; [原文中有flash效果演示]<br>FlowLayout使容器内的组件按从左到右的顺序排列，每个组件都按最合适的大小显示，直到这一行放不下后，会换到下一行，类似于文本书写的形式。
<p><span class=langName>Actionscript:</p>
<div class=actionscript><span style="FONT-WEIGHT: bold; COLOR: #9900cc">package</span><br><span style="COLOR: #000000">{</span><br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> flash.<span style="COLOR: #000000">display</span>.<span style="COLOR: #000000">Sprite</span>;<br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> flash.<span style="COLOR: #000000">display</span>.<span style="COLOR: #000000">StageScaleMode</span>;
<p>&nbsp;</p>
<p><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> org.<span style="COLOR: #000000">aswing</span>.<span style="COLOR: #000000">JFrame</span>;<br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> org.<span style="COLOR: #000000">aswing</span>.<span style="COLOR: #000000">JButton</span>;<br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> org.<span style="COLOR: #000000">aswing</span>.<span style="COLOR: #000000">FlowLayout</span>;<br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> org.<span style="COLOR: #000000">aswing</span>.<span style="COLOR: #000000">JTextArea</span>;<br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> org.<span style="COLOR: #000000">aswing</span>.<span style="COLOR: #000000">JLabel</span>;<br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> org.<span style="COLOR: #000000">aswing</span>.<span style="COLOR: #000000">AsWingManager</span>;</p>
<p><span style="FONT-WEIGHT: bold; COLOR: #0033ff">public</span> <span style="FONT-WEIGHT: bold; COLOR: #9900cc">class</span> FlowLayoutTest <span style="FONT-WEIGHT: bold; COLOR: #0033ff">extends</span> Sprite<br><span style="COLOR: #000000">{</span><br>&nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #0033ff">public</span> <span style="FONT-WEIGHT: bold; COLOR: #339900">function</span> FlowLayoutTest<span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span><br>&nbsp; &nbsp; <span style="COLOR: #000000">{</span><br>&nbsp; &nbsp; &nbsp; &nbsp; AsWingManager.<span style="COLOR: #000000">setRoot</span><span style="COLOR: #000000">(</span><span style="FONT-WEIGHT: bold; COLOR: #0033ff">this</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> frame:JFrame = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JFrame<span style="COLOR: #000000">(</span><span style="FONT-WEIGHT: bold; COLOR: #0033ff">this</span>, <span style="COLOR: #ff0000">"FlowLayoutTest"</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">getContentPane</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>.<span style="COLOR: #000000">setLayout</span><span style="COLOR: #000000">(</span><span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> FlowLayout<span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> label1:JLabel = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JLabel<span style="COLOR: #000000">(</span><span style="COLOR: #ff0000">"JLabel"</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> button1:JButton = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JButton<span style="COLOR: #000000">(</span><span style="COLOR: #ff0000">"btn1"</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> button2:JButton = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JButton<span style="COLOR: #000000">(</span><span style="COLOR: #ff0000">"buttttttton2"</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> button3:JButton = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JButton<span style="COLOR: #000000">(</span><span style="COLOR: #ff0000">"button"</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> text1:JTextArea = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JTextArea<span style="COLOR: #000000">(</span><span style="COLOR: #ff0000">"改变窗口的宽度查看效果"</span><span style="COLOR: #000000">)</span>;&nbsp; &nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">getContentPane</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>.<span style="COLOR: #000000">appendAll</span><span style="COLOR: #000000">(</span>label1, button1, button2, button3, text1<span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">show</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">setSizeWH</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">160</span>, <span style="COLOR: #000000">280</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; stage.<span style="COLOR: #000000">scaleMode</span> = StageScaleMode.<span style="COLOR: #000000">NO_SCALE</span>;<br>&nbsp; &nbsp; <span style="COLOR: #000000">}</span><br><span style="COLOR: #000000">}</span><br><span style="COLOR: #000000">}</span></p>
</div>
<p><br><br><font color=#810081><strong style="FONT-SIZE: 18pt; COLOR: #000000">AsWing布局管理——EmptyLayout</strong></font></p>
<p>[原文] http://harryxu.cn/blog/?p=112<br>EmptyLayout是对LayoutManager接口的空实现，是其他布局管理的基类，如果要对容器内组件进行绝对定位和大小控制，可以使用EmptyLayout<br><span class=langName><br>Actionscript:</p>
<div class=actionscript><span style="FONT-WEIGHT: bold; COLOR: #9900cc">package</span><br><span style="COLOR: #000000">{</span><br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> flash.<span style="COLOR: #000000">display</span>.<span style="COLOR: #000000">Sprite</span>;<br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> flash.<span style="COLOR: #000000">display</span>.<span style="COLOR: #000000">StageScaleMode</span>;
<p>&#160;</p>
<p><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> org.<span style="COLOR: #000000">aswing</span>.<span style="COLOR: #000000">AsWingManager</span>;<br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> org.<span style="COLOR: #000000">aswing</span>.<span style="COLOR: #000000">JFrame</span>;<br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> org.<span style="COLOR: #000000">aswing</span>.<span style="COLOR: #000000">JButton</span>;<br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> org.<span style="COLOR: #000000">aswing</span>.<span style="COLOR: #000000">EmptyLayout</span>;</p>
<p><span style="FONT-WEIGHT: bold; COLOR: #0033ff">public</span> <span style="FONT-WEIGHT: bold; COLOR: #9900cc">class</span> EmptyLayoutTest <span style="FONT-WEIGHT: bold; COLOR: #0033ff">extends</span> Sprite<br><span style="COLOR: #000000">{</span><br>&nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #0033ff">public</span> <span style="FONT-WEIGHT: bold; COLOR: #339900">function</span> EmptyLayoutTest<span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span><br>&nbsp; &nbsp; <span style="COLOR: #000000">{</span><br>&nbsp; &nbsp; &nbsp; &nbsp; AsWingManager.<span style="COLOR: #000000">setRoot</span><span style="COLOR: #000000">(</span><span style="FONT-WEIGHT: bold; COLOR: #0033ff">this</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> frame:JFrame = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JFrame<span style="COLOR: #000000">(</span><span style="FONT-WEIGHT: bold; COLOR: #0033ff">this</span>, <span style="COLOR: #ff0000">"EmptyLayoutTest"</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">getContentPane</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>.<span style="COLOR: #000000">setLayout</span><span style="COLOR: #000000">(</span><span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> EmptyLayout<span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> button1:JButton = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JButton<span style="COLOR: #000000">(</span><span style="COLOR: #ff0000">"button1"</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; button1.<span style="COLOR: #000000">setSizeWH</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">80</span>, <span style="COLOR: #000000">30</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; button1.<span style="COLOR: #000000">setLocationXY</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">50</span>, <span style="COLOR: #000000">20</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">getContentPane</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>.<span style="COLOR: #000000">append</span><span style="COLOR: #000000">(</span>button1<span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> button2:JButton = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JButton<span style="COLOR: #000000">(</span><span style="COLOR: #ff0000">"button2"</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; button2.<span style="COLOR: #000000">setSizeWH</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">200</span>,<span style="COLOR: #000000">150</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; button2.<span style="COLOR: #000000">setLocationXY</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">60</span>, <span style="COLOR: #000000">70</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">getContentPane</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>.<span style="COLOR: #000000">append</span><span style="COLOR: #000000">(</span>button2<span style="COLOR: #000000">)</span>;&nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">show</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">setSizeWH</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">350</span>, <span style="COLOR: #000000">280</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #0033ff">this</span>.<span style="COLOR: #000000">stage</span>.<span style="COLOR: #000000">scaleMode</span> = StageScaleMode.<span style="COLOR: #000000">NO_SCALE</span>;<br>&nbsp; &nbsp; <span style="COLOR: #000000">}</span><br><span style="COLOR: #000000">}</span><br><span style="COLOR: #000000">}</span></p>
</div>
<br><strong style="FONT-SIZE: 18pt; COLOR: #000000">AsWing布局管理——BorderLayout<br></strong>[原文] http://harryxu.cn/blog/?p=111<br><br>
<p>感觉学AsWing应该先熟悉他的布局管理，才能灵活运用，组合出各种界面</p>
<p>从现在就记录一下平时学到的布局管理器的使用方法，还请大大们指教 :[smile]:<br><span id=more-111></span><br>BorderLayout： 个人感觉边框布局是一种使用起来比较简单的布局方式，他将容器分为5各部分 <strong>东南西北中</strong>，每一个区域中可以容纳一个组件，使用的时候也是通过BorderLayout中的5个方位常量(NORTH, WEST等)来确定组件所在的位置。<br><span class=langName><br>Actionscript:</span> </p>
<div class=actionscript><span style="FONT-WEIGHT: bold; COLOR: #9900cc">package</span> <br><span style="COLOR: #000000">{</span>
<p>&#160;</p>
<p><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> flash.<span style="COLOR: #000000">display</span>.<span style="COLOR: #000000">Sprite</span>;<br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> flash.<span style="COLOR: #000000">display</span>.<span style="COLOR: #000000">StageScaleMode</span>;</p>
<p><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> org.<span style="COLOR: #000000">aswing</span>.<span style="COLOR: #000000">AsWingManager</span>;<br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> org.<span style="COLOR: #000000">aswing</span>.<span style="COLOR: #000000">JFrame</span>;<br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> org.<span style="COLOR: #000000">aswing</span>.<span style="COLOR: #000000">JButton</span>;<br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">import</span> org.<span style="COLOR: #000000">aswing</span>.<span style="COLOR: #000000">BorderLayout</span>;<br>&nbsp; &nbsp; <br><span style="FONT-WEIGHT: bold; COLOR: #0033ff">public</span> <span style="FONT-WEIGHT: bold; COLOR: #9900cc">class</span> BorderLayoutTest <span style="FONT-WEIGHT: bold; COLOR: #0033ff">extends</span> Sprite<br><span style="COLOR: #000000">{</span><br>&nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #0033ff">public</span> <span style="FONT-WEIGHT: bold; COLOR: #339900">function</span> BorderLayoutTest<span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>:<span style="FONT-WEIGHT: bold; COLOR: #0033ff">void</span><br>&nbsp; &nbsp; <span style="COLOR: #000000">{</span><br>&nbsp; &nbsp; &nbsp; &nbsp; AsWingManager.<span style="COLOR: #000000">setRoot</span><span style="COLOR: #000000">(</span><span style="FONT-WEIGHT: bold; COLOR: #0033ff">this</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> frame:JFrame = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JFrame<span style="COLOR: #000000">(</span><span style="FONT-WEIGHT: bold; COLOR: #0033ff">this</span>, <span style="COLOR: #ff0000">"BorderLayout"</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="COLOR: #009900">// BorderLayout 构造函数的2个参数分别为 hgap 和 vgap</span><br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="COLOR: #009900">// 用于设定组件之间的水平间隙和垂直间隙</span><br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">getContentPane</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>.<span style="COLOR: #000000">setLayout</span><span style="COLOR: #000000">(</span><span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> BorderLayout<span style="COLOR: #000000">(</span><span style="COLOR: #000000">5</span>, <span style="COLOR: #000000">5</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> button1:JButton = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JButton<span style="COLOR: #000000">(</span><span style="COLOR: #ff0000">"Button North"</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">getContentPane</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>.<span style="COLOR: #000000">append</span><span style="COLOR: #000000">(</span>button1, BorderLayout.<span style="COLOR: #000000">NORTH</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> button2:JButton = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JButton<span style="COLOR: #000000">(</span><span style="COLOR: #ff0000">"Button West"</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">getContentPane</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>.<span style="COLOR: #000000">append</span><span style="COLOR: #000000">(</span>button2, BorderLayout.<span style="COLOR: #000000">WEST</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> button3:JButton = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JButton<span style="COLOR: #000000">(</span><span style="COLOR: #ff0000">"Button South"</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">getContentPane</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>.<span style="COLOR: #000000">append</span><span style="COLOR: #000000">(</span>button3, BorderLayout.<span style="COLOR: #000000">SOUTH</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> button4:JButton = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JButton<span style="COLOR: #000000">(</span><span style="COLOR: #ff0000">"Button East"</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">getContentPane</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>.<span style="COLOR: #000000">append</span><span style="COLOR: #000000">(</span>button4, BorderLayout.<span style="COLOR: #000000">EAST</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #339900">var</span> button5:JButton = <span style="FONT-WEIGHT: bold; COLOR: #0033ff">new</span> JButton<span style="COLOR: #000000">(</span><span style="COLOR: #ff0000">"Button Center"</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">getContentPane</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>.<span style="COLOR: #000000">append</span><span style="COLOR: #000000">(</span>button5, BorderLayout.<span style="COLOR: #000000">CENTER</span><span style="COLOR: #000000">)</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">show</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="COLOR: #000000">setSizeWH</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">350</span>, <span style="COLOR: #000000">280</span><span style="COLOR: #000000">)</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; <span style="FONT-WEIGHT: bold; COLOR: #0033ff">this</span>.<span style="COLOR: #000000">stage</span>.<span style="COLOR: #000000">scaleMode</span> = StageScaleMode.<span style="COLOR: #000000">NO_SCALE</span>;<br>&nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; <span style="COLOR: #000000">}</span><br><span style="COLOR: #000000">}</span><br><span style="COLOR: #000000">}</span></p>
</div>
</span></span>
<img src ="http://www.cppblog.com/twzheng/aggbug/33506.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/twzheng/" target="_blank">谭文政</a> 2007-10-05 15:57 <a href="http://www.cppblog.com/twzheng/articles/33506.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>