Home » Core Java » util » Preferences

Preferences

Store preferences to user space

This is an example of how to store Preferences to user space. The Preferences class allows applications to store and retrieve user and system preference and configuration data. Storing Preferences to user space implies that you should: Get the root preference node for the calling user, using userRoot() API method of Preferences. Get the named preference for the given pathname of the ...

Read More »

Read preferences from user space

In this example we shall show you how to read the Preferences from user space. To read the Preferences from user space one should perform the following steps: Get the root preference node for the calling user, using userRoot() API method of Preferences. Get the named preference for a given path name of the preference node, with node(String pathName) API ...

Read More »