hi,
how could i display the contents of a folder in the jframe without using jfilechooser, this happen
by clicking browse button and the contents of folder appears in my jframe directly??

Recommended Answers

All 3 Replies

By reading the content of the folder yourself using the methods available on the File class, and putting the data you get that way into some container which you can put in that frame.

could you please show how to this......

Take a look at JTree and How To Use Trees.
If you don't want to use a JTree then you'll have to decide just how you want to represent that data and how you want to interact with it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.