• Post Reply Bookmark Topic Watch Topic
  • New Topic

first time run  RSS feed

 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to let a programe know its the first time its been run in a computer, ie a pop up a into message if this is the case.
 
Paul Clapham
Sheriff
Posts: 22832
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have the program store something somewhere on the computer. If it doesn't find that something when it starts, then it must assume this is its first run. The classes in java.util.Preferences are a good choice for implementing this.
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok mate, thanks for that one.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!