I am beginner on Java GUI. I am writing a program that calculates the inverse of the given matrix. To do this, first i have to scan matrix. I decided to scan matrix by this way:
What is the concrete problem? What is class of the object? It seems a problem with the layout of the container component.
I'd recommend you to add the matrix text fields into a dedicated JPanel
with a GridLayout
.
Example:
// ...
matrixPanel.setLayout(new GridLayout(rowCnt, rowCnt)); // matrixPanel is the dedicated JPanel
for(i=0;i
More information about GridPanel in http://docs.oracle.com/javase/tutorial/uiswing/layout/grid.html