JGoodies Binding
http://jnb.ociweb.com/jnb/jnbJun2005.html
------------------------------------------------------------------------------------------
MigLayout
http://www.devx.com/Java/Article/38017/1954
Although MigLayout comes with a wide variety of keywords, there are certain ones that you will find yourself using most often, namely:
- wrap: Used on a control (e.g., add(new JButton("OK"),"wrap")), it tells the layout to wrap to the next line.
- wrap x: Used as a global layout constraint (e.g., new MigLayout("wrap 3")), it tells the layout to automatically wrap to the next line every x controls that are added.
- span: Used on a control, it tells the control to occupy the remainder of the row.
- span x | span x y: Used on a control, it tells the layout that this control will occupy a cell that spans x columns (or x columns and y rows)
- split | split x: Used on a first control in a cell, it tells the layout manager to split the cell so that multiple controls can be added into it. The next x controls that will be added will automatically be in the same cell (or if the split is used without a value, it will wait until the next wrap keyword is encountered).
- grow: Used at a layout, column, row, or control level, it tells basically the layout to occupy the full available space. For example, if you wanted to define a layout with three columns where the middle one grows as the window expands, you would define it as new MigLayout("","[] [grow] []").
- top, left, bottom, right: These are basic vertical and horizontal alignment indicators that can be used at any level (layout, column, row, or control).
- flowy: It changes the flow from horizontal to vertical.
- sg x: Used on a control, sg stands for size group. It allows you to indicate that multiple controls should have the same size. This is very useful when you want all command buttons to be of the same width.
1006
No comments:
Post a Comment