====== New XScalaWT feature- Assign to properties ======
In XScalaWT, to set a layout, you previously would write (same as Java):
setLayout(new FillLayout())
Now, you can write:
layout = new FillLayout()
Most SWT properties now work this way. So for example instead of using setters everywhere you can now write code like:
progressBar(
minimum = 0,
maximum = 50,
selection = 20
)
Which is much cleaner and easier to follow.
Thanks much to Jean-Philippe Pellet for the idea and implementation of this feature!
XScalawt can be found on GitHub at: https://github.com/pieceoftheloaf/XScalaWT/tree/gh-pages
~~LINKBACK~~
~~DISCUSSION:closed~~