Filtering filename extensions in JFileChooser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sukatoa
    Contributor
    • Nov 2007
    • 539

    Filtering filename extensions in JFileChooser

    Im now trying to design a class that extends FileFilter that will be use for filtering filename extensions of choice....

    I know this is a stupid work for you experts, but i just want test myself if i can now design my own class... Instead of using FileNameExtensi onFilter in jdk 1.6,
    I assume that i am using j2se 1.5.0 u15...

    The purpose is, I like to set those filename extension filtering patterns not the same as FileNameExtensi onFilter.. I mean, passing values to a parameter in my own way... For current Project's simplification and optimization...

    As of this moment, im attempting to override the accept(File file) and the getDescription( ) method...

    since i hate to miss a thing, Could you guys suggest other classes that can also be use instead of using FileNameExtensi onFilter? or could you advice me as im walking down the strange road?!!

    waiting for your replies...
    sukatoa
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    What's that 'T' thing you're talking about all the time? Did you hit something generic
    or what?

    kind regards,

    Jos

    Comment

    • sukatoa
      Contributor
      • Nov 2007
      • 539

      #3
      Originally posted by JosAH
      What's that 'T' thing you're talking about all the time? Did you hit something generic
      or what?

      kind regards,

      Jos
      No, i used T, because it is long for me to type... lazy sometimes ;-)

      Sorry for having you doubt with it...

      sukatoa.

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Ok, what doesn't the FileNameExtensi onFilter do that you want it to do and adds
        functionality? If you just want to pass your parameters around in a different way,
        simply extend that class and transmogrify the parameters in the way that class
        wants them and call the super constructor. No need to override anything.

        kind regards,

        Jos

        Comment

        • sukatoa
          Contributor
          • Nov 2007
          • 539

          #5
          Originally posted by JosAH
          Ok, what doesn't the FileNameExtensi onFilter do that you want it to do and adds
          functionality? If you just want to pass your parameters around in a different way,
          simply extend that class and transmogrify the parameters in the way that class
          wants them and call the super constructor. No need to override anything.

          kind regards,

          Jos
          Roger.....

          Thanks, im on my way....

          Comment

          Working...