• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding reading a property file

 
Jignesh Gohel
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

Please let me know what a property file is ,how to make it & how to make the parameters read from this file into a swing application???

Thanking you,
Jignesh
 
Tad Dicks
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well how do you want to do it?
You can make it an xml file if you want, or just a simple line by line file (often the easiest, one property per line). Read them in and set the values you want.


-tad
 
Jignesh Gohel
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for the reply.
If you could explain with a small example it would be helpful to me.

Thanks
Jignesh
 
Tad Dicks
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This one is so simple and not very flexible.
But basically it just reads 3 lines from a text file (db.conf) and sets the values for connecting to a database.
 
Jignesh Gohel
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Tadd for your cooperation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!