Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Preferences

The java.util.pref.Preferences class

Tutorial Details:

The java.util.pref.Preferences class, which was added in Java 1.4 to provide improved functionality over the java.util.Properties class, is used to store and get persistent (remains on disk between program executions) hierarchical name/values pairs. These preferences are stored in an operating system dependent manner, eg in the Windows registry or a Mac preferences file, but you don't have to be concerned with the actual way it is stored. Both system and user preferences can be obtained.

Package. The method of using Preferences described below gets a Preference object associated with the package of the current application, which effectively gives each program a unique set of preferences. Use of unique package names is therefore very important.


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/io/30properties_and_preferences/10preferences.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Preferences

View Tutorial:
Preferences

Related Tutorials:

A portable hill of beans
A portable hill of beans
 
Reloading Applets
Reloading Applets
 
Exceptions in Java - JavaWorld - July 1998
Exceptions in Java - JavaWorld - July 1998
 
Solve real problems with aglets, a type of mobile agent - JavaWorld May 1997
Solve real problems with aglets, a type of mobile agent - JavaWorld May 1997
 
Sun lets Jini Starter Kit 1.1 out of the bottle - JavaWorld December 2000
Sun lets Jini Starter Kit 1.1 out of the bottle - JavaWorld December 2000
 
Deliver cellular messages with SMS - JavaWorld March 2001
Deliver cellular messages with SMS - JavaWorld March 2001
 
Personalize your Website with skins - JavaWorld June 2001
Personalize your Website with skins - JavaWorld June 2001
 
Sir, what is your preference?
Sir, what is your preference?
 
A recipe for cookie management
A recipe for cookie management
 
Master J2ME for live data delivery
Master J2ME for live data delivery
 
Effort on the edge, Part 1
Effort on the edge, Part 1
 
The first taste of Liberty
The first taste of Liberty
 
High-availability mobile applications
High-availability mobile applications
 
Introducing the Portlet Specification, Part 1
Introducing the Get your feet wet with the specification's underlying terms and concepts
 
Flexible User and Environment Ant Configuration
Flexible User and Environment Ant Configuration The de facto standard for building, packaging, and deploying Java applications is Apache Ant. Small differences in developers\' environments or preferences may cause problems with some Ant tasks that invo
 
Doclipse, a Javadoc tag plug-in for Eclipse
Doclipse A JavaDoc Tag Plug-in for Eclipse
 
Develop aspect-oriented Java applications with Eclipse and AJDT
AspectJ is an aspect-oriented extension of the Javaâ„¢ language that enables a modular implementation of crosscutting concerns. This crosscutting behavior, which can be static or dynamic, presents an extra challenge to tools that support AspectJ. The AJDT
 
Getting Started With Composite Capabilities/Preference Profiles and JSR 188
This article presents Composite Capabilities/Preference Profiles for designing content once. JSR 188 allows users to access the same application or content from any device, and be confident that it will work on that device, and will accommodate their pref
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.