MILIND_JOG
asked on
JTable row values repeatating after moving to next row.
Dear Experts,
I have one JTable. When so ever I move to next row, the values automatically updated by the values of last row.
Please help me in resolving the issue.
I am attaching the source code.
Regards
guestName.java
I have one JTable. When so ever I move to next row, the values automatically updated by the values of last row.
Please help me in resolving the issue.
I am attaching the source code.
Regards
guestName.java
I'll try to look at your code later. You need to make some alterations:
Java class names begin upper case, otherwise they look like method or variable names. You have a class called 'guestName' which takes in its ctor a String[] called 'guestName1'. That's confused and confusing.
Java class names begin upper case, otherwise they look like method or variable names. You have a class called 'guestName' which takes in its ctor a String[] called 'guestName1'. That's confused and confusing.
ASKER
Dear CEHJ,
I understood what you have observed. I will make it more appropriate.
Waiting for your sugestions.
Regards
I understood what you have observed. I will make it more appropriate.
Waiting for your sugestions.
Regards
I'll look at it later if i can. Also get rid of the 'magic numbers' in your code. How could the likes of
ever be seen as readable?? You will forget within a few days what that's meant to doif(keycode == 119)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much for resolving my issue.
Regards
Regards
You're welcome.
Thanx 4 axxepting
Thanx 4 axxepting
ASKER
Regards