Basics

The "User" and "System" tabs represent actual preferences accessible by JVM you are running. In addition to that, you can create any number of similar tabs. They serve as worksheets, allowing you to quickly exchange information between files and actual preferences. Note that changes made in the User and System tabs are reflected in the preferences immediately and will be seen by other java processes, while changes in worksheets will be lost unless saved to files.

To rename a key or change a value of a preference in the right pane, double-click on it, and edit in place. If the text is too long for in-place editor, right-click this line and choose "Edit row" in the context menu. A bigger editor window will show up.The context menu also has items for deleting a preference, or adding a new one. To add the first key use the "plus" button on the toolbar.

To save entire preference tree to a file, select the corresponding tab (User or System), and choose File|Save from the main menu.

To restore all preferences from a file, fully overwriting the current contents:

More details

The left pane shows the tree structure of preference nodes. All operations on nodes are accessible from the node context (right-click) menu. The operation is always performed on the selected node. If two nodes are involved (for Paste or Merge), the selected node is always the target.

Main menu

The File Menu contains traditional "New", "Open", "Save" and "Save As" items. Choosing File|New creates a new empty tab, which can be populated either manually or using copy and paste operations from other tabs. The "save" operations store entire worksheet to a file. The format of such file is XML representation of preferences, described in Java Preferences API. It also contains "Save as HTML" item, applicable to the current tree.

Note that File Menu operations work with tabs, not individual nodes. If you want, for example, to save a node's subtree to a file, choose Copy from the context menu of this node, then choose File|New to create a new (worksheet), and choose Paste for the root of that worksheet. Then save this worksheet to a file.

The Edit Menu contains operations applicable to preferences associated with selected node: add a new key-value pair, and remove all of them.

The View Menu contains items "Expand subtree" and "Collapse subtree" with obvious meaning. If no node is selected, the root node is assumed.

The View Menu also contains the "Look and Feel" item, which allows you to choose among available LaFs. By default, only the standard LaFs are available. If you want to add more LaFs (like JGoodies Looks or JavaSoft's Synthetica), download the jar file and add it to the class path of this program. In this case the command line to start the program would look like this (on Unix replace semicolon by colon):

java -cp prefs.jar;looks.jar org.bbg.prefs.Main

In the View Menu choose "Look and Feel" and then "Add another L&F". The program will scan all jar files in the class path and show you all classes there, which implement javax.swing.LookAndFeel. Select any of them and their names will appear in the "Look and Feel" Menu.