Am a newbie in java programing and am trying to create a gui using netbeans IDE.I have created a table to display my data.
The problem is when i want to manipulate my data in the table, am only able to read the value of one cell.Am thinking of using loop but i have no idea on how to apply it.Below is my code
private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
GetTableValues();
}
public void GetTableValues() {
//for (i=1;.length <=48;i++);
String str = (String) Xenon.getValueAt(2,1);
JOptionPane.showMessageDialog(null, str);
}
Anyone with an idea on how i can insert the loop in this code?Thanks
Edited by WingedPanther, 14 November 2008 - 07:01 AM.
add code tags (the # button)


Sign In
Create Account

Back to top









