JTable, JList
A JTable is a grid of cells, each cell having its own content. A JList is similar but with just one dimension. The special support for JTable and JList consists of a custom property editor that controls the number of rows (and columns), the titles, object types, and so on.
To open the custom property editor for a JTable or JList:
- Access the object's properties (for example, through the Component Inspector).
- Choose the Properties tab.
- Click on the ... button for the entry for the
model
property.The JTable custom property editor has tabs for Table Settings and Default Values.
The JList custom property editor enables you to add, delete, and rearrange list items.
Note: These custom editors only provide the ability to edit simple models of relatively fixed structure. More demanding applications can not use these visual editors. For live data with changing structure, create your own model in code and assign it to the table or list in the form's constructor or as the value for the
model
property using the Form Connection property editor.
Contents | Prev | Next | Index |