您的位置:首页 > 运维架构 > Linux

Linux字符界面切换到图形界面

2013-05-16 14:08 197 查看
代码:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="450" height="350" creationComplete="initApp()" backgroundColor="#FFFFFF" fontSize="12">
<mx:Script>
<![CDATA[
private function initApp():void{
words.dataProvider=['Water','水','Car','汽车','House','房屋','Book','书籍','Music','音乐','Sandwich','三明治'];
english.dataProvider=[];
chinese.dataProvider=[];
}
]]>
</mx:Script>
<mx:Panel  width="450" height="350"  title="123451">
<mx:HBox width="100%" height="100%">
<mx:VBox height="100%" width="50%">
<mx:Label text="拖拽"/>
<mx:List  id="words" width="200" height="275" allowMultipleSelection="true" dragEnabled="true"></mx:List>
</mx:VBox>
<mx:VBox height="100%" width="50%">
<mx:Label  text="英文"/>
<mx:List  id="english" width="200" height="120" dropEnabled="true"></mx:List>
<mx:Label  text="中文"/>
<mx:List  id="chinese" width="200" height="120" dropEnabled="true"></mx:List>
</mx:VBox>
</mx:HBox>
</mx:Panel>
</mx:Application>

效果:





本文出自 “技术成就梦想” 博客,请务必保留此出处http://aqqle.blog.51cto.com/4871613/887499
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: