oehm-smith / StockFx

JavaFx implementation of my very own (: ) portfolio management tool. Creating as enjoying JavaFx and want to play with it a bit more and I have a few stock portfolio ideas I'd like to play with.
1 stars 1 forks source link

"DB Path doesn't exist" - fix to be more user friendly #1

Open oehm-smith opened 11 years ago

oehm-smith commented 11 years ago

At this time, if the path where the pref says to store the DB doesn't exist, it will print a message to the header of the app, print a log message and throw an exception. The 'preferences' tab is opened and the 'portfolios' tab is prevented from opening. All the user can do (and they are advised in the messages) is to set the preference, quit the application and start again.

It would be more user-friendly if upon settting the DB path to perform the 'if exists' test again and when a correct db path, start the db and restart the application.

oehm-smith commented 11 years ago

Fix is in Crud.java / getDbLocation() and I've put in a TODO where it needs to be done.