English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i m using java RMI. I have done insertion, deletion, updation through client on remote database but when selecting records on there how can i show all records on client, should i creat large number of string arrays which is a bad idea at all...how?

2006-09-19 03:48:50 · 1 answers · asked by faisal117a 1 in Computers & Internet Programming & Design

1 answers

To start with, I am assuming that you have an RMI client that connects to an RMI server, that in turn used JDBC to talk to a database.

The answer is to use a Swing TableModel implementation that retrieves each row of data on demand by fetching that row from the ResultSet held by the RMI server. As long as you don't bother keeping more than a small set of rows of data at any time (a small cache) within the TableModel, you should be able to handle nearly any amount of data.

See this discussion for more information: http://forum.java.sun.com/thread.jspa?threadID=382833&messageID=1811582

2006-09-20 13:52:58 · answer #1 · answered by vincentgl 5 · 0 0

fedest.com, questions and answers