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

Typo in Synth package level documentation on how to load a theme

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 5.0
    • client-libs
    • b58
    • generic
    • generic

      The synth package level documentation contains a typo in the text where it shows how to load an xml theme. It currently reads:

      SynthLookAndFeel laf = new SynthLookAndFeel();
      laf.load(MyClass.class.getResourceAsStream("laf.xml",
               MyClass.class));
      UIManager.setLookAndFeel(laf);

      It should read:

      SynthLookAndFeel laf = new SynthLookAndFeel();
      laf.load(MyClass.class.getResourceAsStream("laf.xml"),
               MyClass.class);
      UIManager.setLookAndFeel(laf);

            shickeysunw Shannon Hickey (Inactive)
            shickeysunw Shannon Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: