What you're trying to do is not something any grid control in any language will give you.
A column by definition is merely a placeholder for all values of a particular field per row.
You can get those values easily by iterating over each row and taking that particular field.
There is no single record in a column, therefore what you're trying to retrieve doesn't even exist.
To get the class of a cell simply take the class of its column, it will always be the same (or a superclass) of the class of the actual data in the cell you're looking at.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
You can always write your own renderer, but I'd guess that would be quit difficult.
Anyways, not sure I fully understand your problem.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
He seems to think that there is some way that each column is a record in its own right, rather than a collection of values taken from a specific field one from each row.
There is no such thing, the entire idea is counter to what a tabular representation of data means.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
Ah, you want to swap the meaning of row and column, that's all?
No, I don't think that's easily possible.
You might be able to subclass JTable but I don't think that'll work.
Or you would have to create something yourself, probably along the lines of the TDbCtrlGrid in Delphi.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
It's not all that common or there would have been a component for it.
Delphi includes a component that does more or less what you want maybe but only in the highend versions.
I've found it occasionally useful, but certainly don't miss it.
Your best bet might be to create a custom JPanel derivative containing your own input fields for each field, and another JPanel derivative to display a number of these in some way.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
A JTable is for one use, what you want is served by the GridLayout.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337