Results 1 to 3 of 3
- 10-30-2008, 03:54 PM #1
Member
- Join Date
- Oct 2008
- Posts
- 5
- Rep Power
- 0
Display the data in Descending order
I am generating data(e.g., 24, 16, 32, 38... etc) in a row/column of a table. Now the data is displaying in random order. I want to display them in Descending order. Can anybody help me how to do this as I am new in Java development.
I am displaying the data using these lines of code:
case 1:
{
return history.getRssi();
}
From this Method:
public Object getValueAt( int row, int col )
{
if( null != histories && 0 <= row && row < getRowCount() )
{
try
{
History history = histories[row];
switch( col )
{
case 0:
return ( history.getCheckinTS().length() > 5 ) ? history.getCheckinTS().substring(5) : history.getCheckinTS();
case 1:
{
return history.getRssi();
}
case 2:
return history.getDeviceId();
} // switch
}
catch( Exception e )
{
System.out.println( "exception:" + e.toString() );
System.out.println( e.getStackTrace().toString() );
}
} // if ( null != tags && 0 <= row && row < tags.length )
return "";
}
- 10-30-2008, 04:36 PM #2
Do you know about array sorts?
- 10-31-2008, 12:06 PM #3presh4u Guest
Similar Threads
-
Best GUI Element to Display Mass Data
By hannehomuth in forum Advanced JavaReplies: 3Last Post: 07-29-2008, 11:18 PM -
how to display the picture when the filename is not in order
By norazanita in forum New To JavaReplies: 5Last Post: 06-06-2008, 09:31 AM -
How to display Tabuler Data in J2EE application on jsp page
By AMATYA-CHANAKYA in forum Advanced JavaReplies: 2Last Post: 04-23-2008, 05:54 PM -
Data formatting for the <display:table>
By yuchuang in forum Web FrameworksReplies: 3Last Post: 12-14-2007, 10:52 AM -
how to display data in Jtree
By paty in forum New To JavaReplies: 1Last Post: 07-24-2007, 12:28 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks