
Originally Posted by
Deathnote
Textbox[][] txtbox = new TestBox[noRows][noCols]; <--where do u declare this one? if sa insert na button it will always declare it every time he clicks the insert button?
No declare it ones ra, sa constructor ba..hehe actually la pko ka try og code sa c#..la ko kibaw onsaon pg initialize og 2d array sa c#.. pero assume java og c# pariha ra:
Code:
for(int row=0; row<noRows; row++){
for(int col=0; col<noCols; col++){
yourTxtbox[row][col] = new JTextField();
}
}

Originally Posted by
Deathnote
//pa display sa textbox
textbox[row][col].text=value; <----it displays an error that textbox does not exist
variable name rana instead og txtbox