java - How to sort rows in JTable based on object property? -


i having jtable catobjects. displaying names. how can when click on table header sort criteria textual name? have sort column in database want use instead. have tried overriding getcolumnclass method of defaulttablemodel seems wrong. can use?

two approaches suggest themselves:

i either case, can delegate, name string, implements comparable<string>.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -