theryt
theryt

Reputation:

Abstract Java Grid

I'm looking for an abstract representation of a grid in Java (grid as in that thing with columns and rows of data). Do such things exist? I want to be able to sort, filter, keep track of rows, set column properties etc. I'll then be realising the grid on the web.

To be clear: I've already decided on the ultimate view technology (client side). The thing I'm looking for will hold all the records and offer them up as the view demands.

Upvotes: 3

Views: 408

Answers (3)

ddimitrov
ddimitrov

Reputation: 3343

You can reuse the table models of the Glazed Lists project (provided that you can hook your web view to a regular TableModel)

Upvotes: 0

Ichorus
Ichorus

Reputation: 4617

JTable is what you are looking for.

Upvotes: 0

Barth
Barth

Reputation: 15715

Have a look to this tutorial from Sun about the tables in java. It gives a good idea on how to implement the model.

Tutorial on tables in Java

Upvotes: 1

Related Questions