Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preferences...



Jens Vogler wrote:

>I created a file vchat.java with the class vchat in it and gave it the
>package name com.VoglerSoftware.vchat .
>
>Now I want to get the prefs node for it to save my preferences. I tried
>Preferences.userNodeForPackage(com.VoglerSoftware.vchat),
>Preferences.userNodeForPackage(VoglerSoftware.vchat) and
>Preferences.userNodeForPackage(vchat) and got always an error message.

When you get an error message, it's usually a good idea to paste the exact
error message into your posting.  It makes it easier for others to
understand what you're seeing, and where.

To fix the error, which occurs during compilation, use:
  Preferences.userNodeForPackage( com.VoglerSoftware.vchat.class )


As a matter of style, Java class names usually start with upper case
letters, and package names are usually all lower-case.  It's only a
convention, but it's quite widespread.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.