Why does tablemodel automatically sort the data in database? I want to insert a data at the end of the resultset/table. How can I do it? THanks!!!
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Why does tablemodel automatically sort the data in database? I want to insert a data at the end of the resultset/table. How can I do it? THanks!!!
Are you asking about the contents of a DB or about what is displayed in a JTable?
If you don't understand my answer, don't ignore it, ask a question.
When I insert new data, it will automatically sort the data displayed on JTable.
The JTable's display is up to you.
If you don't understand my answer, don't ignore it, ask a question.
You mean? I just want to add/insert the at the end of the recordset displayed on JTable.
Sorry, I do not know anything about DBs.
If this is a DB question, I can move this thread to the DB section of the forum.
If you don't understand my answer, don't ignore it, ask a question.
It's ok. Thanks anyway.
If this is a DB question, I can move this thread to the DB section.
If you don't understand my answer, don't ignore it, ask a question.
Code in the forum of an SSCCE does wonders in describing your problem, especially if you post your question in the 'What's wrong with my code' section. We don't know if this is a Swing problem, a Database problem, or anything in between.