I have been doing a lot of research the past few days but the more info I obtain, the more confused I get.
So far it appears that the Spring Framework will be able to suit my needs, but every example and every tutorial I read implements a webapp rather than a desktop application, even though as suggested by similar topics integration with desktop should be possible:
Can Spring and SWT work together for Java Desktop Applications?
Adding spring mvc to a spring java "desktop" application
and many more; the issue is none of these topics are able to set my thoughts straight.
Basically what I want my desktop app to do is show a login screen (easy, I can make this), then compare the credentials against my mySQL database and start a user session. As the user uses the app I want all the variables the user enters to be stored in my database, but only for that specific user. (I have set up checkboxes, textfields etc.)
So basically my setup would be as follows:
Login Screen -> User1 logs in and is authenticated
Desktop App -> User1 enters and saves some data, the desktop app saves the data in the database for User1
I think I need Spring for this, I just don't know how to combine a session management with data persistence. Any help would be greatly appreciated, I have found no similar topics anywhere.