• Post Reply Bookmark Topic Watch Topic
  • New Topic

Offline Desktop application using Swing and any other DB  RSS feed

 
Niraj Gadgilwar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have to create a desktop application in Swing which user can use Offline.
I want to store his data on his m/c only so that he can update/delete/save some data.

Now what should I use to save this data on his local m/c?
Should I use any DB (but dont want to ask User to install it on his m/c) or is there something else?

Please suggest.

Niraj
 
Mohamed Sanaulla
Bartender
Posts: 3169
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Storing the data in DB will be organised and easier to query and retrieve. But the user might not want to install the DB in his machine. Other way would be to use filesystem- Store the data in the files and then parse it to retrieve the data- You can use serialization to directly store the information in the objects and then retrieve them when ever required.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the data which you want to store is simple properties or anything similar, you might want to consider the Java Preferences API If your data is more complex then you might have to go with something like Derby.
 
Roberto Perillo
Bartender
Posts: 2273
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:If your data is more complex then you might have to go with something like Derby.


Agreed. I'd go for Derby in this case.
 
Mohamed Sanaulla
Bartender
Posts: 3169
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roberto Perillo wrote:
Maneesh Godbole wrote:If your data is more complex then you might have to go with something like Derby.


Agreed. I'd go for Derby in this case.


Oh yeah, Derby would be better suited.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!