Results 1 to 5 of 5
  1. #1
    ranadav is offline Member
    Join Date
    May 2010
    Posts
    9
    Rep Power
    0

    Default win32ShellFolder

    Hi
    I am writing an app that is needs to open dicom imgs(a format for CT images)
    when I opened only 1 img I did it by:
    opening a jfilechooser and the file I got back was of type win32ShellFolder2
    using this file I created an Imageinputstream and read the file.
    however now I am trying to open more then 1 file
    so I choose a directory from the JFileChooser
    get the list of files it contains and open them by

    File f = new File(list[i]);

    this opens the files as file object which is not good for me
    any suggestions on how to open them as win32ShellFolder2
    ?????
    10x
    Ran

  2. #2
    ranadav is offline Member
    Join Date
    May 2010
    Posts
    9
    Rep Power
    0

    Default

    help
    plz

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,331
    Rep Power
    25

    Default

    the file I got back was of type win32ShellFolder2
    Not familiar with that. How do you detect what type of file you have?

    Where do you get/use the package sun.awt.shell?
    Last edited by Norm; 06-02-2010 at 03:48 PM.

  4. #4
    ranadav is offline Member
    Join Date
    May 2010
    Posts
    9
    Rep Power
    0

    Default

    i printed choice.getclass to find the type
    I wrote import at the begining of the program

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,331
    Rep Power
    25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •