Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4693985

FileSystemPreferences WARNING message raised during runtime.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.4.1
    • core-libs
    • generic
    • generic

      Run the following to get the following message. It shows up right away. This did not show up in the FCS version of Merlin.

      May 30, 2002 9:45:02 AM java.util.prefs.FileSystemPreferences$3 run
      WARNING: Could not create system preferences directory. System preferences are unusable.


      ----------------------------------- Cut Here --------------------------------

      import javax.swing.*;
      import java.awt.event.*;
      import java.awt.*;

      public class AButton extends JFrame {

          private JButton button;

          public static void main(String[] args) {
              new AButton();
          }

          public AButton() {
              button = new JButton("Hello");

              button.addMouseListener(new MouseListener() {
                  public void mouseClicked(MouseEvent e) {}
                  public void mouseExited(MouseEvent e) {}
                  public void mousePressed(MouseEvent e) {}
                  public void mouseReleased(MouseEvent e) {}
                  public void mouseEntered(MouseEvent e) {
                      System.out.println("There");
                  }
              });

              getContentPane().setLayout(new FlowLayout());
              getContentPane().add(button);
              setSize(200, 200);
              show();
          }
      }

      ----------------------------------- Cut Here --------------------------------

      ###@###.### 2002-05-30

            kkladkosunw Konstantin Kladko (Inactive)
            elousunw Edmund Lou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: