Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Is it a good practice to save files in local system via signed applet

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I have swing application, which I converted as applet (Signed Applet). Swing application save the user preferences in local files system.
So my Question: is it a good practice to save files(user preferences) in local files system.
 
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I still did not get your main question.

Is it swing Vs applet?
or
advantages/disadvantage of saving data locally?
 
Saloon Keeper
Posts: 6465
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you considered using java.util.prefs instead? There's no need to write your own preference system.
 
harish alwalakumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
The application is swing application. One of the features in the application is to store the user preferences of the application(say save userid/pwd) locally at say c:\DOcument and Settings\<username>\appName. So that application will pickup the user credentials from locally stored data. User need not enter every time he opens the application.

Now we would like to give this application as Applet as well. So we have created new Applet and used this swing application in it. It works perfectly without issues. (its signed applet)

Now regarding the above said feature, we are analyzing if storing the user data locally is a good practice running the application from applet. However we know how to access local file system. But we are looking for Best Practices of Applet in storing the content in local file system and accessing the same in next usage of applet.

Hope I am clear on my question.
 
Tim Moores
Saloon Keeper
Posts: 6465
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:Have you considered using java.util.prefs instead? There's no need to write your own preference system.

 
harish alwalakumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any thoughts please
 
Tim Moores
Saloon Keeper
Posts: 6465
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:Have you considered using java.util.prefs instead?

 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim, three thumbs up for perseverance. I do hope it finally sinks in.
 
Marshal
Posts: 25601
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the other hand Harish is definitely persevering at looking for the "Best Practice™".

However in this case it sounds as silly as asking whether it's a "best practice" to wear a tie to work. "Best practice" is more of an architecture concept and doesn't really make sense when making detailed decisions about how to implement a feature of an application.
 
Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic