it's normaly when you add rows it add +1 into the row like this :
Here when you delete some rows then add another row it doesn't choose the last row to add +1 to it it keeps adding the last number of rows you added before :
SCJP 5, OCPJP 7, 8, SCJD 5, SCWCD 4, SCBCD 5, SCJWS 4, IBM OOAD 833 & 834, MongoDB Developer
Prasad Saya wrote:
it's normaly when you add rows it add +1 into the row like this :
Row numbers: 1,2,3,4,5,6,7
Here when you delete some rows then add another row it doesn't choose the last row to add +1 to it it keeps adding the last number of rows you added before :
Row numbers: 1,2,3,8,9,10,11
What are the rows (row numbers) you deleted in the above example.
Campbell Ritchie wrote:There are all sorts of ways you can persist information. You can save it into a database when you close your app. You can write all the information into a text file or an XML file. You can have an object that encapsulates all the information and serialise it to an object file. You can write the data to a binary file, e.g. a random access file.
All things are lawful, but not all things are profitable.
Only if I am feeling awkwardKnute Snortum wrote:. . . Campbell might disagree with that.
Cannot solve this for 3 days , can someone post a code that auto increment the first coloumns with last row detection ?
also how can i save my files in binary files and load it again in jtable
for example when you add rows it stars normally : 1,2,3,4,5,6 etc.
when you delete for example row number 2 , rows reset to 1,2,3,4,5 but when you add a row it add number 7 instant of 6 ( 1,2,3,4,5,7) .
SCJP 5, OCPJP 7, 8, SCJD 5, SCWCD 4, SCBCD 5, SCJWS 4, IBM OOAD 833 & 834, MongoDB Developer
SCJP 5, OCPJP 7, 8, SCJD 5, SCWCD 4, SCBCD 5, SCJWS 4, IBM OOAD 833 & 834, MongoDB Developer
Prasad Saya wrote:Please post the entire code you had developed so far.
All things are lawful, but not all things are profitable.
Prasad Saya wrote:Please post the entire code you had developed so far. So that we can see where the problem is. If there are any latest (or new) screenshots of the application, attach them too.
Campbell Ritchie wrote:I try to avoid <= and >= because < and > are easier to read. Please note the formatting and spacing for a loop, as well as indexing starting from 0:-Alternative version, moving the increment to later:-
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |