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

Registry writing  RSS feed

 
Damodar R. Katti
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i am installing my software written using java swing, i want to register it into windows registry. How can this be done ???..Help me....
I need to create a Demo Version where i need to keep track of dates.
 
Rene Liebmann
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
why do you want to write into the registry? I had never the wish to do this, but I could imagine, that this is impossible, because it is WINDOWS only. The only way I could imaging is the way over JNI, where you can write with C++ into the registry, but there is a more smart way to remember user settings. YOu could use property files. With the class Properties you can easily add key - value pairs and you can save it to a file. With the class ResourceBundle you can read the files. This is easy.
Hope this helps

Rene
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!