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

JFileChooser mangles Network Neighborhood

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs



      Name: gm110360 Date: 04/29/2002


      FULL PRODUCT VERSION :
      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

      FULL OPERATING SYSTEM VERSION :
      Windows 98 [Version 4.10.2222]

      A DESCRIPTION OF THE PROBLEM :
      JFileChooser in J2SE 1.4 now supports browsing Windows
      Network Neighborhood. This works fine under Windows 2000
      and Windows ME. But under Windows 98, the folder names are
      incorrect.

      For example on a Win98 system that has the following list
      under Network Neighborhood:
      "Entire Network"
      "BONO"
      "FLYTRAP"
      "MONTY"
      "WIN98VMGOOF"

      JFileChooser displays this list:
      "work"
      " Network"
      "oft Network"
      "t Network"
      "crosoft Network"

      Double clicking on each of these names reveals the proper
      contents - i.e. each name maps to the proper machine (in
      this case "work" maps to "Entire Network", " Network" maps
      to "BONO", "oft Network" maps to "FLYTRAP" etc.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Run the attached NetChooser class
      2. Select "Network Neighborhood" from the combobox
      3. Compare the list of names to those in a native Windows
      chooser (e.g. the File|Open dialog in Notepad.exe)

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      The list names are corrupted, I expect to see the proper
      names.

      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javax.swing.*;
      public class NetChooser {
      public static void main(String args[]) {
      new JFileChooser().showOpenDialog(null);
      System.exit(0);
      }
      }

      ---------- END SOURCE ----------
      (Review ID: 146001)
      ======================================================================

            leifs Leif Samuelsson (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: