Results 1 to 6 of 6
Thread: Table column sort
- 04-16-2010, 07:15 PM #1
Member
- Join Date
- Aug 2009
- Posts
- 60
- Rep Power
- 0
- 04-17-2010, 05:03 AM #2
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
No idea what you are asking.
Read the JTable API and follow the link to the Swing tutorial on "How to Use Tables" for a working example on sorting.
If you need more help post your SSCCE showing the problem.
- 04-17-2010, 06:15 AM #3
Member
- Join Date
- Aug 2009
- Posts
- 60
- Rep Power
- 0
Thanks for responding.
I am trying to understand the code behide this table. The columns are sortable when I run the app, but I don't see anywhere in the code that a row sorter is created/used. So I am wondering:
1. Is it even possible to set all the columns sortable without using a row sorter? I thought the answer was no, so I am very confused.
2. If it is possible, how? If anybody can point me to what I should look for in the code that would be great.
3. When a table is created by default, are the columns sortable?
Thanks!
- 04-17-2010, 07:34 AM #4
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
Me either because I don't see the SSCCE.but I don't see anywhere in the code that a row sorter is created/used.
- 04-17-2010, 08:27 AM #5
Member
- Join Date
- Aug 2009
- Posts
- 60
- Rep Power
- 0
I would post the code if I could, but my company doesn't allow it.
That's why I asked what I thoght were general questions... anyhow...
Have you ever seen a table with sortable columns without a row sorter?
-
Your company doesn't allow its code to be displayed, and that's not what we're asking for. We're asking for you to create a small program that is not from your company's code base, but that demonstrates the problem you're encountering. Doing this should run you afoul of no rules. Luck.
Similar Threads
-
table column sort
By new2java2009 in forum New To JavaReplies: 8Last Post: 04-16-2010, 01:17 AM -
Non-Editable Table Column
By ld_pvl in forum AWT / SwingReplies: 6Last Post: 08-03-2009, 06:35 PM -
How to insert a SWT table column at an index
By Java Tip in forum SWTReplies: 0Last Post: 07-11-2008, 04:30 PM -
Sorting a SWT table by column
By Java Tip in forum SWTReplies: 0Last Post: 07-11-2008, 03:07 PM -
How to sort column in JTable
By johnt in forum AWT / SwingReplies: 3Last Post: 06-14-2008, 05:48 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks