mgarin / weblaf

WebLaF is a fully open-source Look & Feel and component library written in pure Java for cross-platform desktop Swing applications.
http://weblookandfeel.com
GNU General Public License v3.0
1.13k stars 234 forks source link

Interactable table component #606

Open mgarin opened 4 years ago

mgarin commented 4 years ago

During development of multiple applications I've often found a need to have a component that would look like a JTable, but would be fully interactable, meaning you can interact with elements in every cell. This is doable with JTable, but you will have to duplicate the same component as editor & renderer and there are a lot of other complications created by JTable API.

The idea is to make a different component that would simply layout actual cell JComponents on itself instead of visually rendering them as an image (like JTable does) and will have a simple and clean API to do so. This component will obviously have worse performance compared to JTable, but it is not intended for displaying large amounts of data, but it should be way more convenient for creating table-like editor for small amounts of data.

Here is a list of features that will probably be in the first version of the component:

Row and column sorting probably won't be included in first version and will be added in future only if necessary.

Also, component won't necessarily look like JTable, but will have some similarities with it.