haftasia
چهارشنبه 19 فروردین 1394, 11:14 صبح
سلام دوستان، من این قسمت از برنامه رو درست متوجه نمیشم. اگر میشه یه توضیح کامل درباره هر خط بدید ممنون
public void buildoutput( int array[][] )
{
for(int row = 0 ; row < array.length ; row++){
for(int column = 0 ; column < array [ row ].length ; column++ ){
outputArea.append(array[ row ][ column ] + " " );
}
outputArea.append( "\n" );
}
}
اگر ممکنه در باره این متد ها هم یک توضیح مفصل بدید ممنون میشم
JTextArea outputArea;
outputArea = new JTextArea();
Container container = getContentPane();
container.add( outputArea );
public void buildoutput( int array[][] )
{
for(int row = 0 ; row < array.length ; row++){
for(int column = 0 ; column < array [ row ].length ; column++ ){
outputArea.append(array[ row ][ column ] + " " );
}
outputArea.append( "\n" );
}
}
اگر ممکنه در باره این متد ها هم یک توضیح مفصل بدید ممنون میشم
JTextArea outputArea;
outputArea = new JTextArea();
Container container = getContentPane();
container.add( outputArea );