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.

Results 1 to 9 of 9

Thread: [HELP] Automatic sorting of data

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [HELP] Automatic sorting of data

    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!!!


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: [HELP] Automatic sorting of data

    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.

  3. #3
    Junior Member
    Join Date
    Dec 2012
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: [HELP] Automatic sorting of data

    When I insert new data, it will automatically sort the data displayed on JTable.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: [HELP] Automatic sorting of data

    The JTable's display is up to you.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Dec 2012
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: [HELP] Automatic sorting of data

    You mean? I just want to add/insert the at the end of the recordset displayed on JTable.

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: [HELP] Automatic sorting of data

    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.

  7. #7
    Junior Member
    Join Date
    Dec 2012
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: [HELP] Automatic sorting of data

    It's ok. Thanks anyway.

  8. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: [HELP] Automatic sorting of data

    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.

  9. #9
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: [HELP] Automatic sorting of data

    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.

Similar Threads

  1. Automatic Solver
    By ppme in forum What's Wrong With My Code?
    Replies: 3
    Last Post: December 5th, 2011, 04:15 PM
  2. KeyListeners: Automatic Focus?
    By bgroenks96 in forum Java Theory & Questions
    Replies: 32
    Last Post: June 24th, 2011, 09:03 PM
  3. Sorting data from a file into textarea
    By paperkut in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: April 26th, 2011, 07:38 AM
  4. sorting data in excell
    By jaya in forum Member Introductions
    Replies: 5
    Last Post: September 18th, 2010, 07:11 PM
  5. Selection Sorting of Data type (Char)
    By chronoz13 in forum Algorithms & Recursion
    Replies: 1
    Last Post: December 20th, 2009, 08:28 PM

Tags for this Thread