Hi, sorry to be asking the simplest possible question about this API, but I am getting a complier error right off the bat and not sure why.
Java Preferences API Overview states:
The following examples illustrate how you might obtain the Preferences objects (system and user) pertaining to the enclosing class. These examples would work only inside instance methods.
It then cites:
The above example obtains per-user preferences. If a single, per-system value were desired, the first line in foo would be replaced by: Preferences prefs = Preferences.systemNodeForPackage(this);
So I added the following method to my class ViscoSimGUI:
But I immediately get the error
The method systemNodeForPackage(Class<?>) in the type Preferences is not applicable for the arguments (ViscoSimGUI)
It's definitely an instance method as the constructor is
I figure I am missing something too obvious for even the API overview, and would appreciate any help. Thanks, Eric