Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to organize the client interface for adding new data into database?  RSS feed

 
Oleg Vasylenko
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to add new row to database table.
What have I done?
I'm using JTable (with not defalut TableModel, FilterSorter) to display the RecordSet from database. It refreshes the data in JTable on Timer event.
I'm updating data throw the JTable object into the database directly.
Everething, I've done, works Ok!

But the question is - in what way organize the client interface to add new rows?

Please share with your own experience...
It's my first step in JAVA programming..

P/S: I'm sorry for my dirty English.
 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is very difficult to say without seeing any code.

// Mathias
 
Oleg Vasylenko
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see..



In such solution JTable displays all current data from daabase table.
I want to see one empty string in JTable, where the clients can enter the data for new row and after they have finished add new row into the database.

In what way can I do it?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!