Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object Literoj extends SWTApp {
- import Layoutable._
- import Controlable._
- private val sash = new Sash(shell, SWT.BORDER|SWT.VERTICAL) ~~>
- new FormData() ~~| Top(0,0) ~~| Bottom(100,0) ~~| Left(80,0)
- def main(args:Array[String]) = {
- shell ~> new FormLayout()
- val text1 = new Text(shell, SWT.BORDER|SWT.WRAP) ~~>
- new FormData() ~~| Top(0,0) ~~| Bottom(100,0) ~~| Left(0,0) ~~| Right(sash,0)
- val text2 = new Text(shell, SWT.BORDER|SWT.WRAP) ~~>
- new FormData() ~~| Top(0,0) ~~| Bottom(100,0) ~~| Left(sash,0) ~~| Right(100,0)
- loop()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment