Home>
In short, the essence is this.
I read the numbers from the file into a two-dimensional array, now I need to output this array to a tableJTable
...
As I understand it, you first need to create a model and then add it to the table, for this you need to write something like:
DefaultTableModel model= new DefaultTableModel (matrix1, name);
table1= new JTable (model);
But he writes that there is no such solution. As I understand it, arrays must be of types:object [] []
andobject []
...
Please tell me how to convert arrays to such types. And is this the problem?
Now I have arrays of the following types:int [] []
andString []
...
-
Answer # 1
Related questions
- java : The ability to select a cell is lost after applying the renderer with word wrap
- java : Switching between frames in swing
- Java /swing currency converter. How to download a course from online?
- java : How to swap 2 jPanel?
- i want to add color with a java drawing app
- java - i want to realize something like a chat message with scrollpane (image is line chat)
- creating a draw editor in java error: missing class, interface or enum
- i want to count the number of keystrokes in java and make a conditional branch
- java - i want to draw a player on top of an image
Thanks everyone. But I have already found a solution.