Scala界面Scala界面Panel、Layout实战
2015-07-28 19:36
267 查看
学习了Scala界面Scala界面Panel、Layout实战详解,Panel是一个容器,有很多子类,复写了方法top,定义了button和label,在BoxPanel中加入button和label例子如下
Import scala.swing._
Object GUI_Panel_Layout extends simpleswingApplication{
def top =new MaiFram{
Title=”Second GUI”
Val button=new Button{
Text=”scala”
}
Val label = new label {
Text=”here is spark!!!”
}
Contents=new BoxPanel(Orientation.Vertical){
Contents+=button
Contents+=label
Border=swing.EmptyBorder(50,50,50,50)
}
}
王家林亲授 大数据开发语言《Scala深入浅出实战经典》(1-71讲全部视频、代码、PPT)下载 ,总共有140讲Scala视频!
百度云:http://pan.baidu.com/s/1jGjFpWy
腾讯微云:http://url.cn/TnGbdC
360云盘:http://yunpan.cn/cQ4c2UALDjSKy 访问密码 45e2
Import scala.swing._
Object GUI_Panel_Layout extends simpleswingApplication{
def top =new MaiFram{
Title=”Second GUI”
Val button=new Button{
Text=”scala”
}
Val label = new label {
Text=”here is spark!!!”
}
Contents=new BoxPanel(Orientation.Vertical){
Contents+=button
Contents+=label
Border=swing.EmptyBorder(50,50,50,50)
}
}
王家林亲授 大数据开发语言《Scala深入浅出实战经典》(1-71讲全部视频、代码、PPT)下载 ,总共有140讲Scala视频!
百度云:http://pan.baidu.com/s/1jGjFpWy
腾讯微云:http://url.cn/TnGbdC
360云盘:http://yunpan.cn/cQ4c2UALDjSKy 访问密码 45e2
相关文章推荐
- NYOJ-水池数目
- IOS--UI--LessonFMDB
- HDU 2553 N皇后问题
- 火狐下多个span连在一起和换行写存在差异
- 机器学习-CrossValidation交叉验证Python实现
- nyoj 757 (扣分最少)(队列问题)
- spring mongodb Criteria中"and"与"andOperator"方法的区别及"$and"如何工作
- ZOJ 3802 Easy 2048 Again 像缩进DP
- HDU 5319 Painter (模拟)
- 让设计深入人心
- 客户端升级系统升级策略
- USB驱动开发之mass storage的枚举识别过程
- Just Do It: 学习Sinatra
- linux系统管理之无人值守网络安装linux操作系统
- Mybatis 从0-10000
- Verilog之event
- iOS UILabel的输出自适应高度设置
- NYOJ-开心的小明
- HDU 1799
- C语言 static 的作用