What is the best way to show H2 content in jTable? I have programmed jTable by creating model from AbstractTableModel in past. My TableModel used ArrayList<Rows>
Right now I wish to link jTable with H2 instead of ArrayList. Is there some examples of what is the best way to do that. I wish to be able show to big tables and sort results if possible. --- http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/table/TableModel.html 2 main methods that must be implemented are int getRowCount(); Object getValueAt(int rowIndex, int columnIndex); I do not plan to update rows while browsing them in jTable. May be it would be more efficient to mark table as read only if it make sense. int getRowCount(); - SELECT COUNT(*) FROM table1 getValueAt - "SELECT * FROM table1 WHERE id = ?" My idea is to cache ResultSet in case next getValueAt would point to same row. --- Is there a better solution? e.g. I saw JaQu on your site and it return List object. Will it work faster/smoother? Thank You Max --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/h2-database?hl=en -~----------~----~----~----~------~----~------~--~---
