• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • SwingSet
  • Feature Requests

Add a "sorter" to the SSDataGrid

Data-aware replacements for many of the standard Java Swing components

Brought to you by: prasanth, yoda2
This project can now be found here.
  • Summary
  • Files
  • Reviews
  • Support
  • Code
  • News
  • Mailing Lists
  • Tickets ▾
    • Bugs
    • Feature Requests
  • Discussion
  • Donate
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • SwingSet - Next Release

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#21 Add a "sorter" to the SSDataGrid

open
Prasanth Pasala
Data Grid (6)
4
2020-12-10
2005-03-10
Brian E. Pangburn
No

As suggested in this thread on the forums, we need to
investigate adding a table sorter to the SSDataGrid:
https://sourceforge.net/forum/message.php?msg_id=3038707

Amit provided the following info on how to implement this:

Also, I am using a TableSorter given by the sun
JTable table = (JTable) viewport.getView();
//Encapsulate the table model by TableSorter to add
sorting functionality
TableSorter sorter = new TableSorter(table.getModel());
table.setModel(sorter);
sorter.setTableHeader(table.getTableHeader());

Is the additional comma due to the TableSorter,
the code for the table sorter can be found at
http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/TableSorter.java

Discussion

  • Brian E. Pangburn

    Brian E. Pangburn - 2020-12-10

    Migrated to: https://github.com/bpangburn/swingset/issues/7

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
MongoDB Logo MongoDB