I have created a jtable
in Java that fetches its contents from a database table. It is possible that number of rows might exceed the capacity of the int
datatype in Java as the database table's primary key has been set to bigint
datatype (SQL Server 2008).
What I want to do is create a 2D array that would hold n
rows of data where n
is of long
datatype. This array of data would be passed to jtable's model. I tried to declare array object without providing rows number and providing columns number only but it gave syntax error. May be I made a mistake in declaration method. If there is any method of such type declaration then please tell me the syntax or if not then please tell me the solution to solve it. The array is holding data of Object type (i.e. it is an Object[]
array).