top =>
title = "Window Title"
minimumSize
= new Dimension
( 300,
300 ) location
= new Point
(500,
500)
contents
= new BoxPanel
( Orientation.
Vertical ) { contents +
= new Label
("TEXT") { listenTo
(this.
mouse.
clicks) reactions += {
case MouseClicked
(source, point, modifiers, clicks, triggersPopup
) => { var los
= top.
locationOnScreen println(los)
}
}
}
}
}
}
b2JqZWN0IE1vdXNlVGVzdCBleHRlbmRzIFNpbXBsZVN3aW5nQXBwbGljYXRpb24gewogICAgb3ZlcnJpZGUgbGF6eSB2YWwgdG9wID0gbmV3IE1haW5GcmFtZSB7CiAgICAgICAgdG9wID0+CiAgICAgICAgCiAgICAgICAgdGl0bGUgPSAiV2luZG93IFRpdGxlIgogICAgICAgIG1pbmltdW1TaXplID0gbmV3IERpbWVuc2lvbiggMzAwLCAzMDAgKQogICAgICAgIGxvY2F0aW9uID0gbmV3IFBvaW50KDUwMCw1MDApCgogICAgICAgIGNvbnRlbnRzID0gbmV3IEJveFBhbmVsKCBPcmllbnRhdGlvbi5WZXJ0aWNhbCApIHsKICAgICAgICAgICAgY29udGVudHMgKz0gbmV3IExhYmVsKCJURVhUIikgewogICAgICAgICAgICAgICAgbGlzdGVuVG8odGhpcy5tb3VzZS5jbGlja3MpCiAgICAgICAgICAgICAgICByZWFjdGlvbnMgKz0gewogICAgICAgICAgICAgICAgICAgIGNhc2UgTW91c2VDbGlja2VkKHNvdXJjZSwgcG9pbnQsIG1vZGlmaWVycywgY2xpY2tzLCB0cmlnZ2Vyc1BvcHVwKSA9PiB7CiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBsb3MgPSB0b3AubG9jYXRpb25PblNjcmVlbgogICAgICAgICAgICAgICAgICAgICAgICAgcHJpbnRsbihsb3MpCiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfQogICAgfQp9Cg==