• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how 2 display files of local drives in JTable

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey frends i m making project on File transfer client Server .In my client GUI i hav taken JTable and a combo box.As v click over cobo box it will displzy list of drives.and as v select tht drive it will show list of files under it in JTable bt i dunt know how 2 dislpay it.How can i display local drive files in JTable.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you please check your spelling? Also Use Real Workds. It is quite hard to read your post.
For example:

As v click over cobo box


What does this mean? Are you talking about V, the character played by Hugo Weaving in "V for Vendetta"? Or what?

If you are using java.io.File, that has a method called listFiles (and some similar methods) with which you can list all files. You can then add those to a DefaultTableModel.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic