On Sun, Nov 09, 2003 at 04:16:07PM +0530, priyankpatwa wrote:
>    hi ,
>        I am writing a swing application to add data to a database.
>    for this i have written my datamodel and the corresponding code.
>    by this now i am able to display the data from the database.
>    but know  i want to add a row to the table using the UI.
>    Please suggest me as what needs to be added.

Hi, Priyank.

I imagine what you need to do is to provide GUI controls (a button, a
menu item, a dialog.. something) which causes your datamodel to report
an additional row with blank (empty string) contents, followed by a
graphical refresh of your table.

I imagine the tricky part would be to have the table actually support
editing in place, but if you are already allowing editing through your
table that should be straightforward.

Look to your data model.

 jon

>     
>    MY MAIN PROB IS HOW TO SHOW A BLANK EXTRA ROW IN THE UI?
>    thanx,
>    Priyank.

-- 
-------------------------------------------------------------------------------
Jonathan Abbey                                        [EMAIL PROTECTED]
Applied Research Laboratories                 The University of Texas at Austin
GPG Key: 71767586 at keyserver pgp.mit.edu, http://www.ganymeta.org/workkey.gpg

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to