Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

filefilter in filechooser

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,

the code which u told was for a particular type of files.what i wanted
was what happens in notepad. we can choose by typing file extension
in file name textfield or clicking on "files of type"
textfield in notepad.kindly guide
srijan
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi srijan,
go to ur jdk1.3\demo\jfc\filechooserdemo directory there u'll find 3 classes which use the filter and JFilechooser. just read the code. it's exactly what u want and a bit more.
i got in jdk1.3 itself. (i hope such an example will be there in jdk1.2.2 )
regards
deekasha
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!