Wildcard in FileFilter is resetting my File Type

Discussion in 'Java' started by cjaouhar@hotmail.com, May 26, 2006.

  1. Guest

    I am using a FileFilter with the following extension "*.doc". The
    getDescription() method for that extension returns "Microsoft Word
    Document", which is what gets displayed in the "Files of Type"
    dropdown. My problem is that if the user enter a wildcard (*) in the
    "File Name" field and hit enter, it changes the "Files of Type" drop
    down to that as well.

    How do you prevent the "Files of Type" selection from changing when
    using wildcard?
     
    , May 26, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sebastian Hoehn

    Re: FileFilter

    Sebastian Hoehn, Jun 29, 2003, in forum: Java
    Replies:
    1
    Views:
    2,474
  2. P.Hill
    Replies:
    6
    Views:
    6,681
    P.Hill
    Nov 18, 2003
  3. Frank
    Replies:
    5
    Views:
    716
    Andrew Thompson
    Jan 14, 2005
  4. muser

    resetting a file

    muser, Jun 28, 2003, in forum: C++
    Replies:
    0
    Views:
    814
    muser
    Jun 28, 2003
  5. Daniel Thoma
    Replies:
    12
    Views:
    2,653
    markspace
    Jul 31, 2009
  6. markspace

    Returning a bounded wildcard type

    markspace, Oct 4, 2009, in forum: Java
    Replies:
    6
    Views:
    496
  7. Replies:
    7
    Views:
    1,090
  8. WoodHacker

    Gtk::FileFilter

    WoodHacker, Nov 1, 2006, in forum: Ruby
    Replies:
    2
    Views:
    308
    WoodHacker
    Nov 2, 2006
Loading...