Need a Java JTable or grid with typical editing facilities
Posted on 2009-05-07
I'm looking for a table or grid (DefaultTableModel or a Vector of fields model is ok) that allows easy insert, delete, copy/paste (or select + drag/drop), like a text editor, but with columned data. The table will probably have 20 to 500 items.
Can anyone suggest a simple library or some code? (Preferably free).
I don't want to code the insert, copy, paste, drag/drop stuff manually (or if I do, do it once and use it for different kinds tables). Copy/paste to editor as csv would be useful, too.
May need to do drag/drop from one table to another place (or from a place into the table) without having to rewrite everything (something modular would be good).
Something with simple "Notepad" like editing, but for columned data. (I would consider just using a text area, but there may be several fields that the user could easily confuse together).