Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-19-2007, 12:03 PM
Super Moderator
 
Join Date: Apr 2007
Posts: 30
johnt is on a distinguished road
How to sort column in JTable
I want to sort the columns based on the data, for example if the column holds chars the sort should be based on alphabetical order and if the column is of type int the sort is based on ascending or descending.


Can any one tell me how to do it or get me the source code for the functionality, any help is highly appreciated.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-19-2007, 12:04 PM
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Java tutorial has a nice example for this. Please check the following url:

How to Use Tables (The Java™ Tutorials > Creating a GUI with JFC/Swing > Using Swing Components)
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-14-2008, 06:44 AM
Member
 
Join Date: May 2008
Posts: 7
inspiron is on a distinguished road
inspiron
hello ,
i was engaged in my exam so that why i was untouched but from today i will regularly participate in this forums because i love this forums and i
very appriciated all members who gives answers to other members .
:)
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-14-2008, 06:48 AM
Member
 
Join Date: May 2008
Posts: 7
inspiron is on a distinguished road
hi,
i made a student data base with all student records but i want to put search option that search by name all the students .any one give me direction how use search logic in code thanks .
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to sort a list using Bubble sort algorithm Java Tip Algorithms 3 04-29-2008 09:04 PM
Excel Column Gajesh Tripathi New To Java 2 04-13-2008 03:26 PM
insert row and column and delete row and column daredavil82 New To Java 7 11-30-2007 11:32 AM
add a jlist column Alan JCreator 1 05-28-2007 05:51 AM
sort columns in jtable Alan AWT / Swing 2 05-14-2007 06:18 PM


All times are GMT +3. The time now is 04:27 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org